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

Side by Side Diff: LayoutTests/fast/dom/StyleSheet/detached-sheet-owner-node.html

Issue 10265007: Merge 113887 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/StyleSheet/detached-sheet-owner-node-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 <script src="../../js/resources/js-test-pre.js"></script> 2 <script src="../../js/resources/js-test-pre.js"></script>
3 <script> 3 <script>
4 4
5 description('This tests that accessing ownerNode on a disconnected style sheet d oes not crash'); 5 description('This tests that accessing ownerNode on a disconnected style sheet d oes not crash');
6 6
7 jsTestIsAsync = true; 7 jsTestIsAsync = true;
8 8
9 window.onload = function() { 9 window.onload = function() {
10 var innerDocument = document.querySelector('iframe').contentDocument; 10 var innerDocument = document.querySelector('iframe').contentDocument;
11 document.body.removeChild(document.querySelector('iframe')); 11 document.body.removeChild(document.querySelector('iframe'));
12 12
13 innerDocument.querySelector('style').textContent = ''; // this triggers cre ateSheet 13 innerDocument.querySelector('style').textContent = ''; // this triggers cre ateSheet
14 innerDocument.documentElement.textContent = ''; 14 innerDocument.documentElement.textContent = '';
15 15
16 gc(); 16 gc();
17 innerDocument.styleSheets[0] && innerDocument.styleSheets[0].ownerNode; 17 innerDocument.styleSheets[0] && innerDocument.styleSheets[0].ownerNode;
18 finishJSTest(); 18 finishJSTest();
19 }; 19 };
20 20
21 </script> 21 </script>
22 <iframe src="data:text/html,<style>*{}</style>"></iframe> 22 <iframe src="data:text/html,<style>*{}</style>"></iframe>
23 <script src="../../js/resources/js-test-post.js"></script> 23 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/StyleSheet/detached-sheet-owner-node-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698