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

Unified Diff: LayoutTests/inspector-protocol/css/css-edit-range-expected.txt

Issue 172593003: DevTools: [CSS] Add CSS.editRangeInStyleSheetText() to the protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix glitch 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-edit-range-expected.txt
diff --git a/LayoutTests/inspector-protocol/css/css-edit-range-expected.txt b/LayoutTests/inspector-protocol/css/css-edit-range-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ce608e48a7a0cfefe34c08742dcb0ffbdfdc2d10
--- /dev/null
+++ b/LayoutTests/inspector-protocol/css/css-edit-range-expected.txt
@@ -0,0 +1,211 @@
+==== 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: testEditSelector
+=== updated RULE ===
+.EDITED-SELECTOR {
+ box-sizing: border-box
+}
+
+Running test: testEditSubSelector
+=== updated RULE ===
+html, .EDITED-SELECTOR, div, a {
+ padding: 0
+ margin: 0
+ border: 0
+ display: flex
+}
+
+Running test: testBreakingCommentEditSelector
+Expected protocol error: NotFoundError Editing in stylesheet scope should insert a single rule.
+
+Running test: testInsertInSelectorStart
+=== updated RULE ===
+head, html, body, div, a {
+ padding: 0
+ margin: 0
+ border: 0
+ display: flex
+}
+
+Running test: testValidEditPseudoClass
+=== updated RULE ===
+p:first-line {
+ font-size: 200%
+}
+
+Running test: testInvalidPseudoClass
+Expected protocol error: NotFoundError Editing in stylesheet scope should insert a single rule.
+
+Running test: testEditProperty
+=== updated STYLE ===
+padding: 0
+content: 'EDITED PROPERTY'
+border: 0
+display: flex
+
+Running test: testBreakingCommentEditProperty
+Expected protocol error: NotFoundError Rule property edit should not damage more then one property.
+
+Running test: testInsertFirstProperty
+=== updated STYLE ===
+content: 'INSERTED PROPERTY'
+padding: 0
+margin: 0
+border: 0
+display: flex
+
+Running test: testInsertLastProperty
+=== updated STYLE ===
+padding: 0
+margin: 0
+border: 0
+display: flex
+content: 'INSERTED PROPERTY'
+
+Running test: testInsertMultipleProperties
+=== updated STYLE ===
+padding: 0
+margin: 0
+content: 'INSERTED #1'
+content: 'INSERTED #2'
+border: 0
+display: flex
+
+Running test: testInsertPropertyInEmptyRule
+=== updated STYLE ===
+content: 'INSERTED PROPERTY'
+
+Running test: testInsertPropertyOutsideRule
+Expected protocol error: NotFoundError Editing in stylesheet scope should insert a single rule.
+
+Running test: testInsertBreakingPropertyInLastEmptyRule
+Expected protocol error: SyntaxError The property 'content: 'INSERTED PROPERTY'/*
+};' could not be set.
+
+Running test: testDisableProperty
+=== updated STYLE ===
+padding: 0
+/* margin: 0 */
+border: 0
+display: flex
+
+Running test: testInsertEmptyFirstRule
+=== updated RULE ===
+div {
+}
+==== Style sheet text ====
+div {}
+* {
+ 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: testInsertEmptyLastRule
+=== updated RULE ===
+div {
+}
+==== 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 {
+}div { }
+
+
+Running test: testRedo
+=== updated RULE ===
+div {
+ content: 'INSERTED 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! */
+}
+div { content: 'INSERTED RULE'; }
+p:first-letter {
+ font-size: 200%;
+}
+
+.empty-rule {
+}
+
+
+Running test: testInvalidParameters
+Expected protocol error: range.startLine must be a non-negative integer
+
+Running test: testNegativeRangeParameters
+Expected protocol error: range.startLine must be a non-negative integer
+
+Running test: testStartLineOutOfBounds
+Expected protocol error: Specified range is out of bounds
+
+Running test: testEndLineOutOfBounds
+Expected protocol error: Specified range is out of bounds
+
+Running test: testStartColumnBeyondLastLineCharacter
+Expected protocol error: Specified range is out of bounds
+
+Running test: testEndColumnBeyondLastLineCharacter
+Expected protocol error: Specified range is out of bounds
+
+Running test: testInsertBeyondLastCharacterOfLastLine
+Expected protocol error: Specified range is out of bounds
+
+Running test: testReversedRange
+Expected protocol error: Range start must not succeed its end
+

Powered by Google App Engine
This is Rietveld 408576698