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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-tests/script-for-attribute-unexpected-execution.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("Tests that scripts which have a for-event other than window.onload are not executed.");
2
3 document.write('<script for="window">testPassed(\'for=window\');</script>');
4 document.write('<script for="anything">testPassed(\'for=anything\');</script>');
5 document.write('<script event="onload">testPassed(\'event=onload\');</script>');
6 document.write('<script event="anything">testPassed(\'event=anything\');</script >');
7 document.write('<script for="window" event="onload">testPassed(\'for=window even t=onload\');</script>');
8 document.write('<script for="window" event="onload()">testPassed(\'for=window ev ent=onload()\');</script>');
9 document.write('<script for=" WINDOW " event=" ONLOAD() ">testPassed(\'for=W INDOW event=ONLOAD()\');</script>');
10 document.write('<script for="window" event="onresize">testFailed(\'for=window ev ent=onresize\');</script>');
11 document.write('<script for="document" event="onload">testFailed(\'for=document event=onload\');</script>');
12 document.write('<script for="document" event="onclick">testFailed(\'for=document event=onclick\');</script>');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698