diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 14:15:49 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 15:49:49 -0400 |
commit | 217cbb7109b7a5bbacd3170e90607ca5972fc1cd (patch) | |
tree | 4deb7b42f248f7ea73398dc329584899b5573413 /test/unit/data.js | |
parent | 144837afdfab98d6a9f753bc4ccc1feede410101 (diff) | |
download | jquery-217cbb7109b7a5bbacd3170e90607ca5972fc1cd.tar.gz jquery-217cbb7109b7a5bbacd3170e90607ca5972fc1cd.zip |
AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Conflicts:
Gruntfile.js
README.md
src/ajax.js
src/ajax/xhr.js
src/attributes.js
src/core.js
src/css.js
src/data.js
src/effects.js
src/event.js
src/manipulation.js
src/offset.js
src/selector-native.js
src/traversing.js
test/unit/core.js
test/unit/data.js
Diffstat (limited to 'test/unit/data.js')
-rw-r--r-- | test/unit/data.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/data.js b/test/unit/data.js index eb1af3800..7f2ee43c7 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -6,7 +6,7 @@ test("expando", function(){ equal(jQuery.expando !== undefined, true, "jQuery is exposing the expando"); }); -function dataTests (elem) { +function dataTests( elem ) { var dataObj, internalDataObj; equal( jQuery.data(elem, "foo"), undefined, "No data exists initially" ); @@ -73,30 +73,30 @@ function dataTests (elem) { test("jQuery.data(div)", 25, function() { var div = document.createElement("div"); - dataTests(div); + dataTests( div ); // We stored one key in the private data // assert that nothing else was put in there, and that that // one stayed there. - QUnit.expectJqData(div, "foo"); + QUnit.expectJqData( div, "foo" ); }); test("jQuery.data({})", 25, function() { - dataTests({}); + dataTests( {} ); }); test("jQuery.data(window)", 25, function() { // remove bound handlers from window object to stop potential false positives caused by fix for #5280 in // transports/xhr.js - jQuery(window).off("unload"); + jQuery( window ).off( "unload" ); - dataTests(window); + dataTests( window ); }); test("jQuery.data(document)", 25, function() { - dataTests(document); + dataTests( document ); - QUnit.expectJqData(document, "foo"); + QUnit.expectJqData( document, "foo" ); }); test("Expando cleanup", 4, function() { |