| 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:
|
| +
|
|
|