diff --git a/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.html b/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.html
index f73de750dd60da..6e8bf54ebe2da1 100644
--- a/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.html
+++ b/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.html
@@ -49,7 +49,7 @@
XHTML Doctype test 1
txt2=null;
}
test(function() {
-assert_object_equals(txt2,null);
+assert_equals(txt2,null);
},"nbsp should not be recognised without known PUBLIC identifier");
}
diff --git a/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html b/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html
index ba357421f99e37..3ff1c37946005e 100644
--- a/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html
+++ b/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html
@@ -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(); }}
];