| Index: LayoutTests/inspector/elements/styles/spectrum.html
|
| diff --git a/LayoutTests/inspector/elements/styles/spectrum.html b/LayoutTests/inspector/elements/styles/spectrum.html
|
| deleted file mode 100644
|
| index fddd79d5ef0c45b3dc017d6388a9140a1bbd53f9..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/elements/styles/spectrum.html
|
| +++ /dev/null
|
| @@ -1,71 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/elements-test.js"></script>
|
| -<script type="text/javascript">
|
| -
|
| -var test = function()
|
| -{
|
| - function setColor(inputColor, format)
|
| - {
|
| - InspectorTest.addResult("Testing: " + inputColor);
|
| - var color = WebInspector.Color.parse(inputColor);
|
| - spectrum.setColor(color);
|
| - spectrum.setColorFormat(format);
|
| - }
|
| -
|
| - function checkColorString(inputColor, format)
|
| - {
|
| - setColor(inputColor, format)
|
| - InspectorTest.addResult(spectrum.colorString());
|
| - }
|
| -
|
| - function checkAlphaChange(inputColor, format)
|
| - {
|
| - setColor(inputColor, format)
|
| - spectrum._hsv[3] = 0;
|
| - spectrum._onchange();
|
| - InspectorTest.addResult(spectrum.colorString());
|
| - }
|
| -
|
| - function checkNextFormat(inputColor, format)
|
| - {
|
| - setColor(inputColor, format);
|
| - spectrum._formatViewSwitch();
|
| - InspectorTest.addResult(spectrum._currentFormat);
|
| - spectrum._formatViewSwitch();
|
| - InspectorTest.addResult(spectrum._currentFormat);
|
| - }
|
| -
|
| - var spectrum = new WebInspector.Spectrum();
|
| - var cf = WebInspector.Color.Format;
|
| - var inputColors = [
|
| - { string: "red", format: cf.Nickname },
|
| - { string: "#ABC", format: cf.ShortHEX },
|
| - { string: "#ABCDEF", format: cf.HEX },
|
| - { string: "rgb(1, 2, 3)", format: cf.RGB },
|
| - { string: "rgba(1, 2, 3, 0.2)", format: cf.RGB },
|
| - { string: "hsl(1, 100%, 50%)", format: cf.HSL },
|
| - { string: "hsla(1, 100%, 50%, 0.2)", format: cf.HSLA }];
|
| -
|
| - InspectorTest.addResult("--- Testing colorString()");
|
| - for (var color of inputColors)
|
| - checkColorString(color.string, color.format);
|
| -
|
| - InspectorTest.addResult("--- Testing alpha changes");
|
| - for (var color of inputColors)
|
| - checkAlphaChange(color.string, color.format);
|
| -
|
| - InspectorTest.addResult("--- Testing _formatViewSwitch()");
|
| - for (var color of inputColors)
|
| - checkNextFormat(color.string, color.format);
|
| -
|
| - InspectorTest.completeTest();
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -<body onload="runTest()">
|
| -<p>Tests WebInspector.Spectrum</p>
|
| -</body>
|
| -</html>
|
|
|