Skip to content

Commit

Permalink
Replaced some simple assert_object_equals cases.
Browse files Browse the repository at this point in the history
Part of #2033
  • Loading branch information
sideshowbarker committed Aug 17, 2015
1 parent 75965c6 commit 1cc2533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -49,7 +49,7 @@ <h1>XHTML Doctype test 1</h1>
txt2=null;
}
test(function() {
assert_object_equals(txt2,null);
assert_equals(txt2,null);
},"nbsp should not be recognised without known PUBLIC identifier");
}

Expand Down
Expand Up @@ -35,7 +35,7 @@
{test:async_test('regexp'), check:function(e) { assert_equals('' + e.data, '/foo/'); assert_equals(e.data instanceof RegExp, true, 'e.data instanceof RegExp'); }},
{test:async_test('self'), check:function(e) { assert_equals(e.data, null); }},
{test:async_test('array'), check:function(e) { assert_array_equals(e.data, [undefined, null, false, true, 1, NaN, Infinity, 'foo', null, null]); }},
{test:async_test('object'), check:function(e) { assert_object_equals(e.data, {a:undefined, b:null, c:false, d:true, e:1, f:NaN, g:Infinity, h:'foo', k:null, n:null}); }},
{test:async_test('object'), check:function(e) { assert_equals(JSON.stringify(e.data), JSON.stringify({a:undefined, b:null, c:false, d:true, e:1, f:NaN, g:Infinity, h:'foo', k:null, n:null})); }},
{test:async_test('error'), check:function(e) { assert_equals(e.data, null, 'new Error()'); }},
{test:wrapper_test, check:function(e) { assert_unreached(); }}
];
Expand Down

0 comments on commit 1cc2533

Please sign in to comment.