Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Fix a ridiculous test
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed May 23, 2013
1 parent a7b78b5 commit 00b84d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/innerhtml-05.xhtml
Expand Up @@ -15,10 +15,10 @@
var t = async_test();
window.onload = t.step_func(function() {
var foo = window[0].document.documentElement.firstChild;
foo.innerHTML = 'x<\/foo--><\!--y';
// This is ridiculous.
assert_equals(foo.parentNode.innerHTML,
'<foo-- xmlns="http://www.w3.org/1999/xhtml">x</foo-->');
assert_throws('SyntaxError', function() {
foo.innerHTML = 'x<\/foo--><\!--y';
// This is ridiculous.
});
t.done();
});
]]></script>
Expand Down

0 comments on commit 00b84d2

Please sign in to comment.