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

Unified Diff: LayoutTests/inspector/styles/stylesheet-tracking.html

Issue 14821010: DevTools: Do not unbind stylesheets in multiframe documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/styles/stylesheet-tracking.html
diff --git a/LayoutTests/inspector/styles/stylesheet-tracking.html b/LayoutTests/inspector/styles/stylesheet-tracking.html
index ea25b3327137711c06efcc300b619e5999abb32e..f7f8265171be2a6b13bca7737ca885db849f1df1 100644
--- a/LayoutTests/inspector/styles/stylesheet-tracking.html
+++ b/LayoutTests/inspector/styles/stylesheet-tracking.html
@@ -32,6 +32,13 @@ function removeStyleSheet()
document.head.removeChild(document.getElementById("style"));
}
+function loadIframe()
+{
+ var iframe = document.createElement("iframe");
+ iframe.src = "resources/stylesheet-tracking-iframe.html";
+ document.body.appendChild(iframe);
+}
+
function test()
{
var inspectorResource;
@@ -76,7 +83,8 @@ function test()
function successCallback()
{
InspectorTest.addResult("Rule added");
- InspectorTest.completeTest();
+ InspectorTest.evaluateInPage("loadIframe()");
vsevik 2013/05/07 08:11:47 I would also test iframe removing as well.
+ waitStyleSheetAdded(1, step5);
}
function failureCallback()
{
@@ -85,6 +93,11 @@ function test()
}
}
+ function step5()
+ {
+ InspectorTest.completeTest();
+ }
+
var addedCallback;
var addedSheetCount;
var addedSheets = [];
@@ -97,6 +110,7 @@ function test()
function styleSheetAdded(event)
{
+ InspectorTest.addResult("styleSheetAdded");
vsevik 2013/05/07 08:11:47 Let's replace this with an "Unexpected ..." messag
var header = event.data;
addedSheets.push(header);
--addedSheetCount;
@@ -124,6 +138,7 @@ function test()
function styleSheetRemoved(event)
{
+ InspectorTest.addResult("styleSheetRemoved");
var header = event.data;
removedSheets.push(header);
--removedSheetCount;

Powered by Google App Engine
This is Rietveld 408576698