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