Sha256: c322efcf1628ceb2a2431dabf8426aafee7acc913f48b8ee06ed39e93418dcdb

Contents?: true

Size: 245 Bytes

Versions: 103

Compression:

Stored size: 245 Bytes

Contents

describe "UIWebView" do

  [["1 + 1", "2"],
   ["null", ""],
   ["(function(x) { return x * x; })(4)", "16"]].each do |str, expected|
    it "should eval '#{str}'" do
      UIWebView.alloc.init.eval_js(str).should == expected
    end
  end

end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
sugarcube-1.3.6 spec/uiwebview_spec.rb
sugarcube-1.3.5 spec/uiwebview_spec.rb
sugarcube-1.3.4 spec/uiwebview_spec.rb
sugarcube-1.3.3 spec/uiwebview_spec.rb
sugarcube-1.3.2 spec/uiwebview_spec.rb
sugarcube-1.3.1 spec/uiwebview_spec.rb
sugarcube-1.3.0 spec/uiwebview_spec.rb
sugarcube-1.1.0 spec/uiwebview_spec.rb
sugarcube-1.0.7 spec/uiwebview_spec.rb
sugarcube-1.0.6 spec/uiwebview_spec.rb
sugarcube-1.0.5 spec/uiwebview_spec.rb
sugarcube-1.0.4 spec/uiwebview_spec.rb
sugarcube-1.0.3 spec/uiwebview_spec.rb
sugarcube-1.0.2 spec/uiwebview_spec.rb
sugarcube-1.0.1 spec/uiwebview_spec.rb
sugarcube-1.0.0 spec/uiwebview_spec.rb
sugarcube-0.20.25 spec/uiwebview_spec.rb
sugarcube-0.20.24 spec/uiwebview_spec.rb
sugarcube-0.20.23 spec/uiwebview_spec.rb
sugarcube-0.20.22 spec/uiwebview_spec.rb