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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE html>
2 <html> 2
3 <head>
4 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script id="myscript">&lt;/script></script>
8 <p id="description"></p> 4 <p id="description"></p>
9 <div id="console"></div> 5 <div id="console"></div>
10 <script> 6 <script>
11 description("Test parsing of entity-escaped &lt;/script&gt; tag for <a href=\"ht tps://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>"); 7 description("Test parsing of entity-escaped &lt;/script&gt; tag for <a href=\"ht tps://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>");
12 8
9 expectError();
10 </script>
11 <script id="myscript">&lt;/script></script>
12 <script>
13 shouldHaveHadError("SyntaxError"); 13 shouldHaveHadError("SyntaxError");
14 14
15 var expectedResult = '&lt;' + '/script>'; 15 var expectedResult = '&lt;' + '/script>';
16 shouldBe('document.getElementById("myscript").textContent', 'expectedResult'); 16 shouldBe('document.getElementById("myscript").textContent', 'expectedResult');
17 </script> 17 </script>
18 </body>
19 </html>
OLDNEW
« 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