Skip to content
Browse files

Fix a ridiculous test

  • Loading branch information...
1 parent a7b78b5 commit 00b84d22f40ad2afbe23d36df131e7036f252cc9 @zcorpan zcorpan committed May 23, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/innerhtml-05.xhtml
View
8 tests/innerhtml-05.xhtml
@@ -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>

0 comments on commit 00b84d2

Please sign in to comment.
Something went wrong with that request. Please try again.