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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-multiple-style-texts-expected.txt

Issue 1694433003: DevTools: [CSS] Add CSS.setMultipleStyleTexts command to CSS domain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: %zu is not cross-platform - do not use. Created 4 years, 10 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: third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-multiple-style-texts-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-multiple-style-texts-expected.txt b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-multiple-style-texts-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..85f2ea843151e95214d6db70ae96e1de35b235b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-multiple-style-texts-expected.txt
@@ -0,0 +1,117 @@
+The test verifies functionality of protocol method CSS.setStyleTexts.
+
+==== 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: testMalformedArguments1
+Expected protocol error: Could not parse styleSheetId for edit #2 of 2
+
+Running test: testMalformedArguments2
+Expected protocol error: Could not parse range object for edit #1 of 3
+
+Running test: testMalformedArguments3
+Expected protocol error: range.startLine must be a non-negative integer
+
+Running test: testFirstEditDoesNotApply
+Expected protocol error: Failed applying edit #0: SyntaxError Style text is not valid.
+
+Running test: testSecondEditDoesNotApply
+Expected protocol error: Failed applying edit #1: SyntaxError Style text is not valid.
+
+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 {
+ }
+}
+
+
+
+Running test: testMultipleStyleTexts1
+==== Style sheet text ====
+#test {
+ content: 'EDITED2';
+}
+
+#test {
+ /* resetting some properties */
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex; /* flex FTW! */
+}
+
+@media (min-width: 1px) {
+ #test {
+ content: 'EDITED1';
+}
+
+ #test {
+ }
+}
+
+
+
+Running test: testMultipleStyleTexts2
+==== Style sheet text ====
+#test {
+ content: 'EDITED3';
+}
+
+#test {
+ /* resetting some properties */
+ line-height: 1;
+ font-family: "Arial";
+ color: blue;
+ display: flex; /* flex FTW! */
+}
+
+@media (min-width: 1px) {
+ #test {
+ content: 'EDITED4';
+}
+
+ #test {
+ content: 'EDITED5';
+}
+}
+
+
+

Powered by Google App Engine
This is Rietveld 408576698