Modified test for load(); added fix for trigger, where it modifies data passed to...
[jquery.git] / src / ajax / ajax.js
index 9ec6184..ecc0c64 100644 (file)
@@ -47,10 +47,12 @@ jQuery.fn.extend({
         * });
         *
         * @test stop();
-        * foobar = undefined;
-        * foo = undefined;
+        * window.foobar = undefined;
+        * window.foo = undefined;
         * var verifyEvaluation = function() {
         *   ok( foobar == "bar", 'Check if script src was evaluated after load' );
+        *   ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM');
+        *   ok( $('#ap').html() == 'bar', 'Check if script evaluation has modified DOM');
         *   start();
         * };
         * $('#first').load('data/test.html', function() {
@@ -62,7 +64,7 @@ jQuery.fn.extend({
         * @name load
         * @type jQuery
         * @param String url The URL of the HTML file to load.
-        * @param Hash params A set of key/value pairs that will be sent to the server.
+        * @param Object params A set of key/value pairs that will be sent to the server.
         * @param Function callback A function to be executed whenever the data is loaded.
         * @cat AJAX
         */
@@ -657,8 +659,8 @@ jQuery.extend({
         * });
         *
         * @test stop();
-        * foobar = undefined;
-        * foo = undefined;
+        * window.foobar = undefined;
+        * window.foo = undefined;
         * var verifyEvaluation = function() {
         *   ok( foobar == "bar", 'Check if script src was evaluated for datatype html' );
         *   start();