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

Unified Diff: LayoutTests/inspector-protocol/css/css-set-property-text-inline.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
Index: LayoutTests/inspector-protocol/css/css-set-property-text-inline.html
diff --git a/LayoutTests/inspector-protocol/css/css-set-property-text-inline.html b/LayoutTests/inspector-protocol/css/css-set-property-text-inline.html
index 1f4a61c4ae1b548f24e946c13b9106b5d4b6d1d0..f10444bbc643f04652a585f54ab1e253b414bcd8 100644
--- a/LayoutTests/inspector-protocol/css/css-set-property-text-inline.html
+++ b/LayoutTests/inspector-protocol/css/css-set-property-text-inline.html
@@ -8,12 +8,19 @@ function test()
var setPropertyText;
var verifyProtocolError;
var dumpStyleSheet;
+ var documentNodeId;
- InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled);
+ InspectorTest.requestDocumentNodeId(onDocumentNodeReceived);
+
+ function onDocumentNodeReceived(nodeId)
+ {
+ documentNodeId = nodeId;
+ InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled);
+ }
function onCSSEnabled()
{
- InspectorTest.requestNodeId("#reddiv", onNodeRecieved);
+ InspectorTest.requestNodeId(documentNodeId, "#reddiv", onNodeRecieved);
}
function onNodeRecieved(nodeId)

Powered by Google App Engine
This is Rietveld 408576698