aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/widget/widget_extend.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-09-12 23:23:54 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-09-12 23:23:54 +0200
commitd12180d1a5ae5f07f112aaeebbfc295f2fe104d8 (patch)
treefafc200035b15084a819707ebbc49dc6162533b2 /tests/unit/widget/widget_extend.js
parent609e1f87f4b242b1f30ccff75d72a863cb1fdb8e (diff)
downloadjquery-ui-d12180d1a5ae5f07f112aaeebbfc295f2fe104d8.tar.gz
jquery-ui-d12180d1a5ae5f07f112aaeebbfc295f2fe104d8.zip
Widget: Tests code cleanup
Diffstat (limited to 'tests/unit/widget/widget_extend.js')
-rw-r--r--tests/unit/widget/widget_extend.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/widget/widget_extend.js b/tests/unit/widget/widget_extend.js
index fb78ecfb7..90e686e18 100644
--- a/tests/unit/widget/widget_extend.js
+++ b/tests/unit/widget/widget_extend.js
@@ -6,7 +6,6 @@ test( "$.widget.extend()", function() {
optionsCopy = { xnumber2: 1, xstring2: "x", xxx: "newstring" },
merged = { xnumber1: 5, xnumber2: 1, xstring1: "peter", xstring2: "x", xxx: "newstring" },
deep1 = { foo: { bar: true } },
- deep1copy = { foo: { bar: true } },
deep2 = { foo: { baz: true }, foo2: document },
deep2copy = { foo: { baz: true }, foo2: document },
deepmerged = { foo: { bar: true, baz: true }, foo2: document },
@@ -93,10 +92,10 @@ test( "$.widget.extend()", function() {
deepEqual( defaults, defaultsCopy, "Check if not modified: options1 must not be modified" );
deepEqual( options1, options1Copy, "Check if not modified: options1 must not be modified" );
deepEqual( options2, options2Copy, "Check if not modified: options2 must not be modified" );
-
+
var input = {
key: [ 1, 2, 3 ]
- }
+ };
var output = $.widget.extend( {}, input );
deepEqual( input, output, "don't clone arrays" );
input.key[0] = 10;