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-3.0.3 spec/ios/uiwebview_spec.rb
sugarcube-3.0.2 spec/ios/uiwebview_spec.rb
sugarcube-3.0.1 spec/ios/uiwebview_spec.rb
sugarcube-3.0.0 spec/ios/uiwebview_spec.rb
sugarcube-2.12.3 spec/ios/uiwebview_spec.rb
sugarcube-2.12.2 spec/ios/uiwebview_spec.rb
sugarcube-2.12.1 spec/ios/uiwebview_spec.rb
sugarcube-2.12.0 spec/ios/uiwebview_spec.rb
sugarcube-2.11.1 spec/ios/uiwebview_spec.rb
sugarcube-2.11.0 spec/ios/uiwebview_spec.rb
sugarcube-2.10.0 spec/ios/uiwebview_spec.rb
sugarcube-2.9.1 spec/ios/uiwebview_spec.rb
sugarcube-2.8.2 spec/ios/uiwebview_spec.rb
sugarcube-2.8.1 spec/ios/uiwebview_spec.rb
sugarcube-2.8.0 spec/ios/uiwebview_spec.rb
sugarcube-2.7.1 spec/ios/uiwebview_spec.rb
sugarcube-2.7.0 spec/ios/uiwebview_spec.rb
sugarcube-2.6.0 spec/ios/uiwebview_spec.rb
sugarcube-2.5.0 spec/ios/uiwebview_spec.rb
sugarcube-2.4.2 spec/ios/uiwebview_spec.rb