diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 14:15:49 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 14:15:49 -0400 |
commit | 6318ae6ab90d4b450dfadf32ab95fe52ed6331cb (patch) | |
tree | 50b247fed8569e909e380b281e9145bd1458a39e /test/unit/data.js | |
parent | 7627b8b6d9ef6e57dbd20a55b946bd1991c1223e (diff) | |
download | jquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.tar.gz jquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.zip |
AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
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 ad43d34cd..eebe50e84 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -62,7 +62,7 @@ test( "jQuery.hasData no side effects", function() { ); }); -function dataTests (elem) { +function dataTests( elem ) { var dataObj, internalDataObj; equal( jQuery.data(elem, "foo"), undefined, "No data exists initially" ); @@ -129,30 +129,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("jQuery.data(<embed>)", 25, function() { |