Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / for-window-event-onload-scripts.html
blob927aac50b3207586981460113b70d3b24b8f4927
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
4 </script>
6 <script for="body" event="onload()">
7 alert("This script should NOT be run because 'for=body' and 'event=onload()' should not be run.");
8 </script>
10 <script for="window" event="onload">
11 alert("This script SHOULD be run because it has both 'for=window' and 'event=onload'.");
12 </script>
14 <script for="window" event="onload()">
15 alert("This script SHOULD be run because it has both 'for=window' and 'event=onload()'.");
16 </script>
18 <script for="FOO">
19 alert("This script SHOULD be run because it only has a for attribute.");
20 </script>
22 <script event="BAR">
23 alert("This script SHOULD be run because it only has an event attribute.");
24 </script>
26 <script for=" window " event="onload()">
27 alert("This script SHOULD be run because it has both 'for= window ' and 'event=onload()' and the whitespace should be irrelevant.");
28 </script>
30 <script for="window" event=" onload() ">
31 alert("This script SHOULD be run because it has both 'for=window' and 'event= onload() ' and the whitespace should be irrelevant.");
32 </script>
34 <script for=" window " event=" onload() ">
35 alert("This script SHOULD be run because it has both 'for= window ' and 'event= onload() ' and the whitespace should be irrelevant.");
36 </script>
38 <script for=" window " event="onload">
39 alert("This script SHOULD be run because it has both 'for= window ' and 'event=onload' and the whitespace should be irrelevant.");
40 </script>
42 <script for="window" event=" onload ">
43 alert("This script SHOULD be run because it has both 'for=window' and 'event= onload ' and the whitespace should be irrelevant.");
44 </script>
46 <script for=" window " event=" onload ">
47 alert("This script SHOULD be run because it has both 'for= window ' and 'event= onload ' and the whitespace should be irrelevant.");
48 </script>