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

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

Issue 211193006: DevTools: [CSS] use setStyleText as undo action for setPropertyText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: do not crash renderer in case of invalid styleId Created 6 years, 9 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-expected.txt
diff --git a/LayoutTests/inspector-protocol/css/css-set-property-text-expected.txt b/LayoutTests/inspector-protocol/css/css-set-property-text-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..cad68c00a1119cc4a8f800a3c94af930616303bc
--- /dev/null
+++ b/LayoutTests/inspector-protocol/css/css-set-property-text-expected.txt
@@ -0,0 +1,210 @@
+==== Initial style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ padding: 0;
+ margin: 0;
+ border: 0;
+ display: flex; /* flex FTW! */
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+
+Running test: testEditProperty
+==== Style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ padding: 0;
+ content: 'EDITED PROPERTY';
+ border: 0;
+ display: flex; /* flex FTW! */
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+
+Running test: testBreakingCommentEditProperty
+Expected protocol error: SyntaxError The property '/*<--OPENED COMMENT' could not be set.
+
+Running test: testInsertFirstProperty
+==== Style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ content: 'INSERTED PROPERTY';
+ padding: 0;
+ margin: 0;
+ border: 0;
+ display: flex; /* flex FTW! */
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+
+Running test: testInsertLastProperty
+==== Style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ padding: 0;
+ margin: 0;
+ border: 0;
+ display: flex; /* flex FTW! */
+ content: 'INSERTED PROPERTY';
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+
+Running test: testInsertMultipleProperties
+==== Style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ padding: 0;
+ margin: 0;
+ content: 'INSERTED #1';content: 'INSERTED #2';
+ border: 0;
+ display: flex; /* flex FTW! */
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+
+Running test: testInsertPropertyInEmptyRule
+==== Style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ padding: 0;
+ margin: 0;
+ border: 0;
+ display: flex; /* flex FTW! */
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+ content: 'INSERTED PROPERTY';
+}
+
+
+Running test: testInsertBreakingPropertyInLastEmptyRule
+Expected protocol error: SyntaxError The property 'content: 'INSERTED PROPERTY'/*' could not be set.
+
+Running test: testDisableProperty
+==== Style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ padding: 0;
+ /* margin: 0; */
+ border: 0;
+ display: flex; /* flex FTW! */
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+
+Running test: testRedo
+==== Style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ padding: 0;
+ margin: 0;
+ border: 0;
+ display: flex; /* flex FTW! */
+ align-items: center;
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+==== Style sheet text ====
+* {
+ box-sizing: border-box;
+}
+
+html, body, div, a {
+ /* resetting some properties */
+ padding: 0;
+ margin: 0;
+ border: 0;
+ display: flex; /* flex FTW! */
+ align-items: center;
+}
+
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+
+Running test: testInvalidParameters
+Expected protocol error: Failed to parse styleId argument
+

Powered by Google App Engine
This is Rietveld 408576698