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

Unified Diff: LayoutTests/fast/dom/css-delete-doc.html

Issue 6474050: Revert 78101 - Merge r76728, crbug 68263 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/css-delete-doc-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/css-delete-doc.html
===================================================================
--- LayoutTests/fast/dom/css-delete-doc.html (revision 78365)
+++ LayoutTests/fast/dom/css-delete-doc.html (working copy)
@@ -1,78 +0,0 @@
-<html>
-<head>
-<script src="../js/resources/js-test-pre.js"></script>
-<script>
-
-window.jsTestIsAsync = true;
-
-var iteration = 0;
-var sheet, rules;
-
-function step1(opt_media)
-{
- var doc = document.implementation.createHTMLDocument();
- var style = doc.createElement('style');
- doc.head.appendChild(style);
- sheet = style.sheet;
- if (opt_media) {
- sheet.insertRule('@media screen { body { background: red; } p { color: white; } }', 0);
- rules = sheet.rules[0];
- sheet.removeRule(0);
- sheet = 0;
- }
-
- doc.head.removeChild(style);
- document.adoptNode(style);
- delete doc;
- gc();
- setTimeout(opt_media ? step2a : step2b, 10);
-}
-
-function step2a()
-{
- try {
- rules.insertRule('a { }', 1);
- if (iteration++ == 10) {
- iteration = 0;
- step1(true);
- return;
- }
-
- setTimeout('step1(false)', 0);
- }
- catch(e) {
- document.body.innerText = 'FAIL, threw exception.';
- if (window.layoutTestController)
- layoutTestController.notifyDone();
-
- }
-}
-
-function step2b()
-{
- try {
- sheet.insertRule('a { }', 0);
- if (iteration++ == 10) {
- document.body.innerText = 'PASS';
- if (window.layoutTestController)
- layoutTestController.notifyDone();
- return;
- }
-
- setTimeout('step1(true)', 0);
- }
- catch(e) {
- document.body.innerText = 'FAIL, threw exception.';
- if (window.layoutTestController)
- layoutTestController.notifyDone();
-
- }
-}
-
-</script>
-<script src="../js/resources/js-test-post.js"></script>
-</head>
-<body onload="step1()">
- Running...
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/css-delete-doc-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698