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.5.0 spec/ios/uiwebview_spec.rb
sugarcube-3.4.2 spec/ios/uiwebview_spec.rb
sugarcube-3.4.1 spec/ios/uiwebview_spec.rb
sugarcube-3.4.0 spec/ios/uiwebview_spec.rb
sugarcube-3.3.7 spec/ios/uiwebview_spec.rb
sugarcube-3.3.6 spec/ios/uiwebview_spec.rb
sugarcube-3.3.5 spec/ios/uiwebview_spec.rb
sugarcube-3.3.4 spec/ios/uiwebview_spec.rb
sugarcube-3.3.3 spec/ios/uiwebview_spec.rb
sugarcube-3.3.2 spec/ios/uiwebview_spec.rb
sugarcube-3.3.1 spec/ios/uiwebview_spec.rb
sugarcube-3.3.0 spec/ios/uiwebview_spec.rb
sugarcube-3.2.0 spec/ios/uiwebview_spec.rb
sugarcube-3.1.1 spec/ios/uiwebview_spec.rb
sugarcube-3.1.0 spec/ios/uiwebview_spec.rb
sugarcube-3.0.8 spec/ios/uiwebview_spec.rb
sugarcube-3.0.7 spec/ios/uiwebview_spec.rb
sugarcube-3.0.6 spec/ios/uiwebview_spec.rb
sugarcube-3.0.5 spec/ios/uiwebview_spec.rb
sugarcube-3.0.4 spec/ios/uiwebview_spec.rb