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

Side by Side Diff: LayoutTests/platform/chromium/plugins/empty-per-context-data.html

Issue 11411245: Merge 135804 - Check for empty perContextData while creating NP V8 Object. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | LayoutTests/platform/chromium/plugins/empty-per-context-data-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script type="text/javascript"> 3 <script type="text/javascript">
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 // So that we can catch crash failure. 6 // So that we can catch crash failure.
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 function runTest() { 10 function runTest() {
11 var p = document.getElementById('plg'); 11 var p = document.getElementById('plg');
12 var iframe = document.getElementById('script-container-frame-id'); 12 var iframe = document.getElementById('script-container-frame-id');
13 frameScriptFunction = iframe.contentWindow['new-script-object-in-frame']; 13 frameScriptFunction = iframe.contentWindow['new-script-object-in-frame'];
14 iframe.parentNode.removeChild(iframe); 14 iframe.parentNode.removeChild(iframe);
15 p.testScriptObjectInvoke('frameScriptFunction', 'createObject'); 15 p.testScriptObjectInvoke('frameScriptFunction', 'createObject');
16 document.getElementById('result').innerHTML = 'SUCCESS'; 16 document.getElementById('result').innerHTML = 'SUCCESS';
17 if (window.testRunner) 17 if (window.testRunner)
18 testRunner.notifyDone(); 18 testRunner.notifyDone();
19 } 19 }
20 20
21 </script> 21 </script>
22 <body> 22 <body>
23 <embed id="plg" type="application/x-webkit-test-netscape"></embed><P> 23 <embed id="plg" type="application/x-webkit-test-netscape"></embed><P>
24 <iframe id="script-container-frame-id" src="resources/script-container.html" onl oad='runTest()'></iframe> 24 <iframe id="script-container-frame-id" src="resources/script-container.html" onl oad='runTest()'></iframe>
25 <div>This tests that invoking a plugin object from a (iframe) document that is n o longer visible in a frame doesn't crash the renderer. If this test is successf ul, the word SUCCESS should be seen below.</div> 25 <div>This tests that invoking a plugin object from a (iframe) document that is n o longer visible in a frame doesn't crash the renderer. If this test is successf ul, the word SUCCESS should be seen below.</div>
26 <div id="result">FAILED</div> 26 <div id="result">FAILED</div>
27 </body> 27 </body>
28 </html> 28 </html>
29 29
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/platform/chromium/plugins/empty-per-context-data-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698