Bug 1302513 Part 1: Remove test for getAuthoredPropertyValue API (since that API is being draft
authorBrad Werth <bwerth@mozilla.com>
Fri, 21 Jul 2017 14:12:33 -0700
changeset 613455 8187664d902c61587f58e87df80647e17ccb22b2
parent 613241 854290328a09f134899c05eea234de08548e22e8
child 613456 460c07dcbb0c14ec495b9e3b56499036724747f3
push id69806
push userbwerth@mozilla.com
push dateFri, 21 Jul 2017 23:46:28 +0000
bugs1302513
milestone56.0a1
Bug 1302513 Part 1: Remove test for getAuthoredPropertyValue API (since that API is being removed). MozReview-Commit-ID: CpOiobOp1jD
layout/style/test/chrome/chrome.ini
layout/style/test/chrome/test_author_specified_style.html
--- a/layout/style/test/chrome/chrome.ini
+++ b/layout/style/test/chrome/chrome.ini
@@ -4,17 +4,16 @@ support-files =
   bug418986-2.js
   bug535806-css.css
   bug535806-html.html
   bug535806-xul.xul
   hover_helper.html
   match.png
   mismatch.png
 
-[test_author_specified_style.html]
 [test_bug1346623.html]
 [test_bug1371453.html]
 [test_bug418986-2.xul]
 [test_bug1157097.html]
 [test_bug1160724.xul]
 [test_bug535806.xul]
 [test_display_mode.html]
 tags = fullscreen
deleted file mode 100644
--- a/layout/style/test/chrome/test_author_specified_style.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<title>Test for CSSStyleDeclaration.getAuthoredPropertyValue()</title>
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
-<script>
-var values = [
-  // specified value         // returned from getAuthoredPropertyValue()
-  "#12F",                    "#12f",
-  "#1122FF",                 "#1122ff",
-  "rgb(10,20,30)",           "rgb(10, 20, 30)",
-  "Rgb(300,20,30)",          "rgb(255, 20, 30)",
-  "rgba(10,20,30,0.250)",    "rgba(10, 20, 30, 0.25)",
-  "OrangeRed",               "orangered",
-  "rgb(10%,25%,99%)",        "rgb(10%, 25%, 99%)",
-  "rgb(6.66667%,0%,0.0%)",   "rgb(6.66667%, 0%, 0%)",
-  "HSL(0,25%,75%)",          "hsl(0, 25%, 75%)",
-  "hsl(60,0%,0%)",           "hsl(60, 0%, 0%)",
-  "hsla(60,50%,50%,0.1250)", "hsla(60, 50%, 50%, 0.125)",
-  "rgba(0,0,0,0)",           "rgba(0, 0, 0, 0)",
-  "rgba(50,50,50,1)",        "rgb(50, 50, 50)",
-  "rgba(50%,50%,50%,1)",     "rgb(50%, 50%, 50%)",
-  "hsla(0,25%,75%,1)",       "hsl(0, 25%, 75%)",
-];
-
-var properties = [
-  // property to test with  // fixed suffix to ignore from getAuthoredPropertyValue()
-  "color",                  "",
-  "background-color",       "",
-  "background",             " none repeat scroll 0% 0%"
-];
-
-function runTest() {
-  var span = document.createElement("span");
-  for (var j = 0; j < properties.length; j += 2) {
-    var propertyName = properties[j];
-    var expectedSuffix = properties[j + 1];
-    for (var i = 0; i < values.length; i += 2) {
-      var value = values[i];
-      var expected = values[i + 1];
-      span.setAttribute("style", propertyName + ": " + value);
-      is(span.style.getAuthoredPropertyValue(propertyName), expected + expectedSuffix, "specified " + value);
-    }
-  }
-
-  // also test a custom property
-  span.setAttribute("style", "--color: rgb(10%,25%,99%)");
-  is(span.style.getAuthoredPropertyValue("--color"), " rgb(10%,25%,99%)", "specified --color");
-
-  SimpleTest.finish();
-}
-
-SimpleTest.waitForExplicitFinish();
-runTest();
-</script>