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-0.20.21 | spec/uiwebview_spec.rb |
sugarcube-0.20.20 | spec/uiwebview_spec.rb |
sugarcube-0.20.19 | spec/uiwebview_spec.rb |