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-2.4.1 spec/ios/uiwebview_spec.rb
sugarcube-2.4.0 spec/ios/uiwebview_spec.rb
sugarcube-2.3.0 spec/ios/uiwebview_spec.rb
sugarcube-2.2.0 spec/ios/uiwebview_spec.rb
sugarcube-2.1.5 spec/ios/uiwebview_spec.rb
sugarcube-2.1.4 spec/ios/uiwebview_spec.rb
sugarcube-2.1.3 spec/ios/uiwebview_spec.rb
sugarcube-2.1.2 spec/ios/uiwebview_spec.rb
sugarcube-2.1.1 spec/ios/uiwebview_spec.rb
sugarcube-2.1.0 spec/ios/uiwebview_spec.rb
sugarcube-2.0.2 spec/ios/uiwebview_spec.rb
sugarcube-2.0.1 spec/ios/uiwebview_spec.rb
sugarcube-2.0.0 spec/ios/uiwebview_spec.rb
sugarcube-1.7.0 spec/uiwebview_spec.rb
sugarcube-1.6.3 spec/uiwebview_spec.rb
sugarcube-1.6.2 spec/uiwebview_spec.rb
sugarcube-1.6.1 spec/uiwebview_spec.rb
sugarcube-1.6.0 spec/uiwebview_spec.rb
sugarcube-1.5.9 spec/uiwebview_spec.rb
sugarcube-1.5.8 spec/uiwebview_spec.rb