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; |