Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: LayoutTests/fast/parser/entity-end-script-tag.html

Issue 59903016: LayoutTests/resources/js-test.js onerror tweak. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed setTimeout from js-tests changes. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/js/kde/string-2-n.html ('k') | LayoutTests/fast/parser/entity-end-script-tag-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/parser/entity-end-script-tag.html
diff --git a/LayoutTests/fast/parser/entity-end-script-tag.html b/LayoutTests/fast/parser/entity-end-script-tag.html
index afa788bebf1bfde304cf4dd4070b3c4755beff1b..2190d1d1e174479896c05144a10aeab539dcfdf2 100644
--- a/LayoutTests/fast/parser/entity-end-script-tag.html
+++ b/LayoutTests/fast/parser/entity-end-script-tag.html
@@ -1,19 +1,17 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
+<!DOCTYPE html>
+
<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script id="myscript">&lt;/script></script>
<p id="description"></p>
<div id="console"></div>
<script>
description("Test parsing of entity-escaped &lt;/script&gt; tag for <a href=\"https://bugs.webkit.org/show_bug.cgi?id=7931\">Bug 7931: Escaped elements within a textarea block can cause the textarea box to be closed prematurely</a>");
+expectError();
+</script>
+<script id="myscript">&lt;/script></script>
+<script>
shouldHaveHadError("SyntaxError");
var expectedResult = '&lt;' + '/script>';
shouldBe('document.getElementById("myscript").textContent', 'expectedResult');
</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/fast/js/kde/string-2-n.html ('k') | LayoutTests/fast/parser/entity-end-script-tag-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698