... 77 78 79 80 81 82 ... 429 430 431 432 433 434 ... 439 440 441 442 443 444 |
... 77 78 79 80 81 82 83 84 ... 431 432 433 434 435 436 437 438 ... 443 444 445 446 447 448 449 450 |
0 @@ -77,6 +77,8 @@ class PrototypeHelperTest < PrototypeHelperBaseTest 0 link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot" }) 0 assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot?a=10&b=20', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), 0 link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot", :a => '10', :b => '20' }) 0 + assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:false, evalScripts:true}); return false;\">Remote outauthor</a>), 0 + link_to_remote("Remote outauthor", :url => { :action => "whatnot" }, :type => :synchronous) 0 def test_link_to_remote_html_options 0 @@ -429,6 +431,8 @@ Element.update("baz", "\\u003Cp\\u003EThis is a test\\u003C/p\\u003E"); 0 assert_equal %(Sortable.create("blah", {onUpdate:function(){new Ajax.Request('http://www.example.com/order', {asynchronous:true, evalScripts:true, parameters:Sortable.serialize("blah")})}});), 0 @generator.sortable('blah', :url => { :action => "order" }) 0 + assert_equal %(Sortable.create("blah", {onUpdate:function(){new Ajax.Request('http://www.example.com/order', {asynchronous:false, evalScripts:true, parameters:Sortable.serialize("blah")})}});), 0 + @generator.sortable('blah', :url => { :action => "order" }, :type => :synchronous) 0 @@ -439,6 +443,8 @@ Element.update("baz", "\\u003Cp\\u003EThis is a test\\u003C/p\\u003E"); 0 def test_drop_receiving 0 assert_equal %(Droppables.add("blah", {onDrop:function(element){new Ajax.Request('http://www.example.com/order', {asynchronous:true, evalScripts:true, parameters:'id=' + encodeURIComponent(element.id)})}});), 0 @generator.drop_receiving('blah', :url => { :action => "order" }) 0 + assert_equal %(Droppables.add("blah", {onDrop:function(element){new Ajax.Request('http://www.example.com/order', {asynchronous:false, evalScripts:true, parameters:'id=' + encodeURIComponent(element.id)})}});), 0 + @generator.drop_receiving('blah', :url => { :action => "order" }, :type => :synchronous) 0 def test_collection_first_and_last
|