8 transform: rotate(1000000000000000065537deg);
12 <script src="../../../http/tests/inspector/inspector-test.js"></script>
13 <script src="../../../http/tests/inspector/elements-test.js"></script>
18 InspectorTest.runTestSuite([
19 function testInit(next)
21 InspectorTest.selectNodeAndWaitForStyles("inspected", expandSection);
23 function expandSection()
25 var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][2];
31 function testAlterColor(next)
33 var colorTreeElement = InspectorTest.getMatchedStylePropertyTreeItem("color");
34 colorTreeElement.startEditing(colorTreeElement.valueElement);
36 // Most significant digit increment ('F') should not change the value.
37 colorTreeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("PageUp", false, false, true));
38 colorTreeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Up"));
39 colorTreeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("PageDown"));
40 colorTreeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("PageDown", false, false, true));
41 InspectorTest.addResult(colorTreeElement.listItemElement.textContent);
45 function testAlterNumber(next)
47 var opacityTreeElement = InspectorTest.getMatchedStylePropertyTreeItem("opacity");
48 opacityTreeElement.startEditing(opacityTreeElement.valueElement);
50 opacityTreeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Up", false, true, false)); // Alt-Up
52 opacityTreeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Up"));
54 opacityTreeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("PageUp"));
56 InspectorTest.addResult(opacityTreeElement.listItemElement.textContent);
60 function testAlterBigNumber(next)
62 var treeElement = InspectorTest.getMatchedStylePropertyTreeItem("transform");
63 treeElement.startEditing(treeElement.valueElement);
64 var selection = window.getSelection();
65 var range = selection.getRangeAt(0);
66 var newRange = document.createRange();
67 newRange.setStart(range.startContainer, 10);
68 newRange.setEnd(range.startContainer, 10);
69 selection.removeAllRanges();
70 selection.addRange(newRange);
71 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Up"));
72 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("PageUp"));
73 InspectorTest.addResult(treeElement.listItemElement.textContent);
81 <body onload="runTest()">
83 Tests that numeric and color values are incremented/decremented correctly.
85 <h1 id="inspected">Inspect Me</h1>