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

Unified Diff: LayoutTests/inspector-protocol/css/css-set-style-text.html

Issue 1187193005: DevTools: migrate from CSS.setPropertyText to CSS.setStyleText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: for landing Created 5 years, 6 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-style-text.html
diff --git a/LayoutTests/inspector-protocol/css/css-set-style-text.html b/LayoutTests/inspector-protocol/css/css-set-style-text.html
index eecd5592f63d5d77ed5414f8e93a90fa305d8286..20ace4b3e895105ef952562a33305d7d42cd49e3 100644
--- a/LayoutTests/inspector-protocol/css/css-set-style-text.html
+++ b/LayoutTests/inspector-protocol/css/css-set-style-text.html
@@ -5,6 +5,12 @@
<script type="text/javascript" src="../../http/tests/inspector-protocol/css-protocol-test.js"></script>
<script type="text/javascript" src="../../http/tests/inspector-protocol/dom-protocol-test.js"></script>
<script type="text/javascript">
+
+function removeRule()
+{
+ document.styleSheets[0].removeRule(0);
+}
+
function test()
{
var setStyleText;
@@ -96,6 +102,19 @@ function test()
range: { startLine: 13, startColumn: 11, endLine: 15, endColumn: 4 },
text: "\n content: 'EDITED'/* ;\n",
}, dumpAndNext(next));
+ },
+
+ function testSetStyleOfRemovedRule(next)
+ {
+ InspectorTest.sendCommandOrDie("Runtime.evaluate", {expression: "removeRule()"}, mutateRule);
+ function mutateRule()
+ {
+ setStyleText({
+ styleSheetId: styleSheetId,
+ range: { startLine: 0, startColumn: 7, endLine: 2, endColumn: 0 },
+ text: "\n content: 'EDITED';\n",
+ }, dumpAndNext(next));
+ }
}
];
}

Powered by Google App Engine
This is Rietveld 408576698