3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/elements-test.js"></script>
9 InspectorTest
.selectNodeAndWaitForStyles("inspected", step1
);
16 InspectorTest
.addResult("Before append:");
17 InspectorTest
.dumpSelectedElementStyles(true);
18 section
= InspectorTest
.inlineStyleSection();
20 // Create and increment.
21 treeElement
= section
.addNewBlankProperty();
22 treeElement
.startEditing();
23 treeElement
.nameElement
.textContent
= "color";
24 treeElement
.nameElement
.dispatchEvent(InspectorTest
.createKeyEvent("Enter"));
26 // Update incrementally to a valid value.
27 treeElement
.valueElement
.textContent
= "rgb(";
28 treeElement
.kickFreeFlowStyleEditForTest();
29 InspectorTest
.waitForStyleApplied(step2
);
34 // Commit invalid value.
35 treeElement
.valueElement
.textContent
= "rgb(1";
36 InspectorTest
.waitForStyleApplied(step3
);
37 treeElement
.valueElement
.dispatchEvent(InspectorTest
.createKeyEvent("Enter"));
42 InspectorTest
.selectNodeWithId("other", step4
);
47 InspectorTest
.selectNodeAndWaitForStyles("inspected", step5
);
52 InspectorTest
.addResult("After append:");
53 InspectorTest
.dumpSelectedElementStyles(true);
54 InspectorTest
.completeTest();
61 <body onload=
"runTest()">
63 Tests that adding an invalid property retains its syntax.
66 <div id=
"inspected" style=
"font-size: 12px">Text
</div>
67 <div id=
"other"></div>