| OLD | NEW |
| 1 The test verifies functionality of protocol method CSS.setStyleTexts. | 1 The test verifies functionality of protocol method CSS.setStyleTexts. |
| 2 | 2 |
| 3 ==== Initial style sheet text ==== | 3 ==== Initial style sheet text ==== |
| 4 #test { | 4 #test { |
| 5 box-sizing: border-box; | 5 box-sizing: border-box; |
| 6 } | 6 } |
| 7 | 7 |
| 8 #test { | 8 #test { |
| 9 /* resetting some properties */ | 9 /* resetting some properties */ |
| 10 line-height: 1; | 10 line-height: 1; |
| 11 font-family: "Arial"; | 11 font-family: "Arial"; |
| 12 color: blue; | 12 color: blue; |
| 13 display: flex; /* flex FTW! */ | 13 display: flex; /* flex FTW! */ |
| 14 } | 14 } |
| 15 | 15 |
| 16 @media (min-width: 1px) { | 16 @media (min-width: 1px) { |
| 17 #test { | 17 #test { |
| 18 font-size: 200%; | 18 font-size: 200%; |
| 19 } | 19 } |
| 20 | 20 |
| 21 #test { | 21 #test { |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 | 24 |
| 25 | 25 |
| 26 | 26 |
| 27 Running test: testMalformedArguments1 | 27 Running test: testMalformedArguments1 |
| 28 Expected protocol error: Invalid request (edits.1.styleSheetId: string value exp
ected) | 28 Expected protocol error: Invalid parameters (edits.1.styleSheetId: string value
expected) |
| 29 | 29 |
| 30 Running test: testMalformedArguments2 | 30 Running test: testMalformedArguments2 |
| 31 Expected protocol error: Invalid request (edits.0.range: object expected; edits.
0.text: string value expected; edits.2.styleSheetId: string value expected) | 31 Expected protocol error: Invalid parameters (edits.0.range: object expected; edi
ts.0.text: string value expected; edits.2.styleSheetId: string value expected) |
| 32 | 32 |
| 33 Running test: testMalformedArguments3 | 33 Running test: testMalformedArguments3 |
| 34 Expected protocol error: Invalid request (edits.0.range.startLine: integer value
expected) | 34 Expected protocol error: Invalid parameters (edits.0.range.startLine: integer va
lue expected) |
| 35 | 35 |
| 36 Running test: testFirstEditDoesNotApply | 36 Running test: testFirstEditDoesNotApply |
| 37 Expected protocol error: Failed applying edit #0: SyntaxError Style text is not
valid. | 37 Expected protocol error: Failed applying edit #0: SyntaxError Style text is not
valid. |
| 38 | 38 |
| 39 Running test: testSecondEditDoesNotApply | 39 Running test: testSecondEditDoesNotApply |
| 40 Expected protocol error: Failed applying edit #1: SyntaxError Style text is not
valid. | 40 Expected protocol error: Failed applying edit #1: SyntaxError Style text is not
valid. |
| 41 | 41 |
| 42 Running test: testBasicSetStyle | 42 Running test: testBasicSetStyle |
| 43 ==== Style sheet text ==== | 43 ==== Style sheet text ==== |
| 44 #test { | 44 #test { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 content: 'EDITED4'; | 108 content: 'EDITED4'; |
| 109 } | 109 } |
| 110 | 110 |
| 111 #test { | 111 #test { |
| 112 content: 'EDITED5'; | 112 content: 'EDITED5'; |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 | 116 |
| 117 | 117 |
| OLD | NEW |