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

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

Issue 1181213007: DevTools: introduce CSS.setStyleText, we'll migrate setPropertyText to it later. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: win fixed 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-expected.txt
diff --git a/LayoutTests/inspector-protocol/css/css-set-style-text-expected.txt b/LayoutTests/inspector-protocol/css/css-set-style-text-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c19303db72d6905c75a2ab9f469ec5e24cdb4767
--- /dev/null
+++ b/LayoutTests/inspector-protocol/css/css-set-style-text-expected.txt
@@ -0,0 +1,218 @@
+The test verifies functionality of protocol method CSS.setStyleText.
+
+==== Initial style sheet text ====
+#test {
+ box-sizing: border-box;
+}
+
+#test {
+ /* resetting some properties */
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex; /* flex FTW! */
+}
+
+@media (min-width: 1px) {
+ #test {
+ font-size: 200%;
+ }
+
+ #test {
+ }
+}
+
+
+
+Running test: testBasicSetStyle
+==== Style sheet text ====
+#test {
+ content: 'EDITED';
+}
+
+#test {
+ /* resetting some properties */
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex; /* flex FTW! */
+}
+
+@media (min-width: 1px) {
+ #test {
+ font-size: 200%;
+ }
+
+ #test {
+ }
+}
+
+
+Dumping matched rules:
+*#test* { regular
+ content: 'EDITED';
+}
+*#test* { regular
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex;
+}
+@media (min-width: 1px)
+ *#test* { regular
+ font-size: 200%;
+ }
+@media (min-width: 1px)
+ *#test* { regular
+ }
+Dumping inherited rules:
+
+Running test: testSetStylePoorContent
+Expected protocol error: SyntaxError Style text is not valid.
+Dumping matched rules:
+*#test* { regular
+ box-sizing: border-box;
+}
+*#test* { regular
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex;
+}
+@media (min-width: 1px)
+ *#test* { regular
+ font-size: 200%;
+ }
+@media (min-width: 1px)
+ *#test* { regular
+ }
+Dumping inherited rules:
+
+Running test: testSetStyleInMedia
+==== Style sheet text ====
+#test {
+ box-sizing: border-box;
+}
+
+#test {
+ /* resetting some properties */
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex; /* flex FTW! */
+}
+
+@media (min-width: 1px) {
+ #test {
+ content: 'EDITED';
+ color: red;
+ /** foo */
+ }
+
+ #test {
+ }
+}
+
+
+Dumping matched rules:
+*#test* { regular
+ box-sizing: border-box;
+}
+*#test* { regular
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex;
+}
+@media (min-width: 1px)
+ *#test* { regular
+ content: 'EDITED';
+ color: red;
+ }
+@media (min-width: 1px)
+ *#test* { regular
+ }
+Dumping inherited rules:
+
+Running test: testDeleteStyleBody
+==== Style sheet text ====
+#test {
+ box-sizing: border-box;
+}
+
+#test {
+ /* resetting some properties */
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex; /* flex FTW! */
+}
+
+@media (min-width: 1px) {
+ #test {}
+
+ #test {
+ }
+}
+
+
+Dumping matched rules:
+*#test* { regular
+ box-sizing: border-box;
+}
+*#test* { regular
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex;
+}
+@media (min-width: 1px)
+ *#test* { regular
+ }
+@media (min-width: 1px)
+ *#test* { regular
+ }
+Dumping inherited rules:
+
+Running test: testSetStylePoorRange
+Expected protocol error: Specified range is out of bounds
+Dumping matched rules:
+*#test* { regular
+ box-sizing: border-box;
+}
+*#test* { regular
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex;
+}
+@media (min-width: 1px)
+ *#test* { regular
+ font-size: 200%;
+ }
+@media (min-width: 1px)
+ *#test* { regular
+ }
+Dumping inherited rules:
+
+Running test: testSetStyleOpenComment
+Expected protocol error: SyntaxError Style text is not valid.
+Dumping matched rules:
+*#test* { regular
+ box-sizing: border-box;
+}
+*#test* { regular
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex;
+}
+@media (min-width: 1px)
+ *#test* { regular
+ font-size: 200%;
+ }
+@media (min-width: 1px)
+ *#test* { regular
+ }
+Dumping inherited rules:
+

Powered by Google App Engine
This is Rietveld 408576698