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

Side by Side Diff: LayoutTests/http/tests/security/isolatedWorld/click-event.html

Issue 13954010: Eliminate "temporary" and "uninitialized" isolated worlds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <div id="console">Waiting...</div> 4 <div id="console">Waiting...</div>
5 <button id="btn1">Step 1</button> 5 <button id="btn1">Step 1</button>
6 <script id="isolatedScript" type="isolated/world"> 6 <script id="isolatedScript" type="isolated/world">
7 document.body.world = 'Isolated'; 7 document.body.world = 'Isolated';
8 var bt = document.getElementById('btn1'); 8 var bt = document.getElementById('btn1');
9 bt.addEventListener('click', function() { 9 bt.addEventListener('click', function() {
10 document.getElementById('console').innerHTML = document.body.world; 10 document.getElementById('console').innerHTML = document.body.world;
11 }, false); 11 }, false);
12 bt.click(); 12 bt.click();
13 </script> 13 </script>
14 <script> 14 <script>
15 document.body.world = 'Main'; 15 document.body.world = 'Main';
16 if (window.testRunner) { 16 if (window.testRunner) {
17 testRunner.dumpAsText(); 17 testRunner.dumpAsText();
18 testRunner.evaluateScriptInIsolatedWorld(0, document.getElementById('isolatedS cript').innerHTML); 18 testRunner.evaluateScriptInIsolatedWorld(1, document.getElementById('isolatedS cript').innerHTML);
19 } 19 }
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698