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

Unified Diff: LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html

Issue 450533008: DevTools: fix inspector-protocol css tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/inspector-protocol/css/css-protocol-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html
diff --git a/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html b/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html
index bf5bb9165a005def05be75cf0f238fd3de0b7d1d..60235ea2c76d02b82596cc2dacbec04633aa6759 100644
--- a/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html
+++ b/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html
@@ -8,8 +8,15 @@ function test()
{
var frameId;
var styleSheetHeader;
+ var documentNodeId;
- InspectorTest.requestMainFrameId(step2);
+ InspectorTest.requestDocumentNodeId(onDocumentNodeId);
+
+ function onDocumentNodeId(nodeId)
+ {
+ documentNodeId = nodeId;
+ InspectorTest.requestMainFrameId(step2);
+ }
function step2(mainFrameId)
{
@@ -27,7 +34,7 @@ function test()
return;
styleSheetHeader = header;
- InspectorTest.loadAndDumpMatchingRules("#inspected", step3);
+ InspectorTest.loadAndDumpMatchingRules(documentNodeId, "#inspected", step3);
}
function step3()
@@ -38,7 +45,7 @@ function test()
function step4()
{
- InspectorTest.loadAndDumpMatchingRules("#inspected", step5);
+ InspectorTest.loadAndDumpMatchingRules(documentNodeId, "#inspected", step5);
}
function step5()
@@ -55,7 +62,7 @@ function test()
function step7()
{
- InspectorTest.loadAndDumpMatchingRules("#inspected", step8);
+ InspectorTest.loadAndDumpMatchingRules(documentNodeId, "#inspected", step8);
}
function step8()
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-protocol-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698