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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 months 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
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution.html
index 1c8cf82523a42ff6f53c84225b779d027fa4bf1b..7dc0ed4b88aa423b41684f23ec1029e1b5c68a5c 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution.html
@@ -4,7 +4,20 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/script-for-attribute-unexpected-execution.js"></script>
+<script>
+description("Tests that scripts which have a for-event other than window.onload are not executed.");
+
+document.write('<script for="window">testPassed(\'for=window\');<' + '/script>');
+document.write('<script for="anything">testPassed(\'for=anything\');<' + '/script>');
+document.write('<script event="onload">testPassed(\'event=onload\');<' + '/script>');
+document.write('<script event="anything">testPassed(\'event=anything\');<' + '/script>');
+document.write('<script for="window" event="onload">testPassed(\'for=window event=onload\');<' + '/script>');
+document.write('<script for="window" event="onload()">testPassed(\'for=window event=onload()\');<' + '/script>');
+document.write('<script for=" WINDOW " event=" ONLOAD() ">testPassed(\'for=WINDOW event=ONLOAD()\');<' + '/script>');
+document.write('<script for="window" event="onresize">testFailed(\'for=window event=onresize\');<' + '/script>');
+document.write('<script for="document" event="onload">testFailed(\'for=document event=onload\');<' + '/script>');
+document.write('<script for="document" event="onclick">testFailed(\'for=document event=onclick\');<' + '/script>');
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698