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

Side by Side Diff: LayoutTests/http/tests/security/isolatedWorld/context-destroy.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 <p>FAIL</p> 2 <p>FAIL</p>
3 <iframe src="data:text/html,FAIL"></iframe> 3 <iframe src="data:text/html,FAIL"></iframe>
4 <script type="text/x-isolate" id="s1"> 4 <script type="text/x-isolate" id="s1">
5 5
6 window.onunload = function() { 6 window.onunload = function() {
7 Window; 7 Window;
8 }; 8 };
9 9
10 </script> 10 </script>
11 <script> 11 <script>
12 12
13 window.onload = function() { 13 window.onload = function() {
14 if (window.testRunner) { 14 if (window.testRunner) {
15 testRunner.waitUntilDone(); 15 testRunner.waitUntilDone();
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 17
18 var iframeElement = document.querySelector('iframe'); 18 var iframeElement = document.querySelector('iframe');
19 iframeElement.focus(); 19 iframeElement.focus();
20 testRunner.evaluateScriptInIsolatedWorld(0, document.querySelector('#s1' ).textContent); 20 testRunner.evaluateScriptInIsolatedWorld(1, document.querySelector('#s1' ).textContent);
21 21
22 iframeElement.onload = function() { 22 iframeElement.onload = function() {
23 document.body.textContent = 'PASS'; 23 document.body.textContent = 'PASS';
24 testRunner.notifyDone(); 24 testRunner.notifyDone();
25 }; 25 };
26 iframeElement.src = 'data:text/html,PASS'; 26 iframeElement.src = 'data:text/html,PASS';
27 } 27 }
28 }; 28 };
29 29
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698