Bug 1247777 - Part4.1: replace windows-style line endings with unix-style line endings. r=bz
authorJeremy Chen <jeremychen@mozilla.com>
Fri, 25 Mar 2016 15:54:50 +0800
changeset 290456 b585613bbba13b50b5acb09b5c0d110eb5097cc5
parent 290455 12839d1c34f919668483f265c31f482e7466f3f7
child 290457 46b58297c2dee95fea660c3fae987fda7b3e36fb
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1247777
milestone48.0a1
Bug 1247777 - Part4.1: replace windows-style line endings with unix-style line endings. r=bz This commit only replace windows-style line endings w/ unix-style ones. "git diff -w" would see no difference in this commit.
layout/style/test/test_bug657143.html
--- a/layout/style/test/test_bug657143.html
+++ b/layout/style/test/test_bug657143.html
@@ -1,107 +1,107 @@
-<!DOCTYPE HTML>
-<html>
-<!--
-https://bugzilla.mozilla.org/show_bug.cgi?id=657143
--->
-<head>
-  <title>Test for Bug 657143</title>
-  <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
-  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
-</head>
-<body>
-<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=657143">Mozilla Bug 657143</a>
-<p id="display"></p>
-<style>
-/* Ensure that there is at least one custom property on the root element's
-   computed style */
-:root { --test: some value; }
-</style>
-<div id="content" style="display: none">
-  
-</div>
-<pre id="test">
-<script class="testbody" type="text/javascript">
-
-/** Test for Bug 657143 **/
-
-// Checks ordering of CSS properties in nsComputedDOMStyle.cpp
-// by splitting the getComputedStyle() into four sublists
-// then cloning and sort()ing the lists and comparing with originals.
-
-function isPrefixed(aProp) {
-  return aProp.startsWith("-moz");
-}
-
-function isNotPrefixed(aProp) {
-  return !isPrefixed(aProp);
-}
-
-function isCustom(aProp) {
-  return aProp.startsWith("--");
-}
-
-function isNotCustom(aProp) {
-  return !isCustom(aProp);
-}
-
-var styleList = window.getComputedStyle(document.documentElement);
-    cssA = [], mozA = [], svgA = [], customA = [];
-
-// Partition the list of property names into four lists:
-//
-//   cssA: regular, non-SVG properties
-//   mozA: '-moz-' prefixed properties
-//   svgA: SVG properties
-//   customA: '--' prefixed custom properties
-
-var list = cssA;
-for (var i = 0, j = styleList.length; i < j; i++) {
-  var prop = styleList.item(i);
-
-  switch (list) {
-    case cssA:
-      if (isPrefixed(prop)) {
-        list = mozA;
-      }
-      // fall through
-    case mozA:
-      if (prop == "clip-path") {
-        // Assumes that the first SVG property is 'clip-path'.
-        list = svgA;
-      }
-      // fall through
-    case svgA:
-      if (isCustom(prop)) {
-        list = customA;
-      }
-      // fall through
-  }
-
-  list.push(prop);
-}
-
-var cssB = cssA.slice(0).sort(),
-    mozB = mozA.slice(0).sort(),
-    svgB = svgA.slice(0).sort();
-
-is(cssA.toString(), cssB.toString(), 'CSS property list should be alphabetical');
-is(mozA.toString(), mozB.toString(), 'Experimental -moz- CSS property list should be alphabetical');
-is(svgA.toString(), svgB.toString(), 'SVG property list should be alphabetical');
-
-// We don't test that the custom property list is sorted, as the CSSOM
-// specification does not yet require it, and we don't return them
-// in sorted order.
-
-ok(!cssA.find(isPrefixed), 'Experimental -moz- CSS properties should not be in the mature CSS property list');
-ok(!cssA.find(isCustom), 'Custom CSS properties should not be in the mature CSS property list');
-ok(!mozA.find(isNotPrefixed), 'Experimental -moz- CSS property list should not contain mature CSS properties');
-ok(!mozA.find(isCustom), 'Custom CSS properties should not be in the experimental -moz- CSS property list');
-ok(!svgA.find(isPrefixed), 'Experimental -moz- CSS properties should not be in the SVG property list'); 
-ok(!svgA.find(isCustom), 'Custom CSS properties should not be in the SVG property list');
-ok(!customA.find(isNotCustom), 'Non-custom CSS properties should not be in the custom property list');
-
-</script>
-</pre>
-</body>
-</html>
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=657143
+-->
+<head>
+  <title>Test for Bug 657143</title>
+  <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
+  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+</head>
+<body>
+<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=657143">Mozilla Bug 657143</a>
+<p id="display"></p>
+<style>
+/* Ensure that there is at least one custom property on the root element's
+   computed style */
+:root { --test: some value; }
+</style>
+<div id="content" style="display: none">
+  
+</div>
+<pre id="test">
+<script class="testbody" type="text/javascript">
+
+/** Test for Bug 657143 **/
+
+// Checks ordering of CSS properties in nsComputedDOMStyle.cpp
+// by splitting the getComputedStyle() into four sublists
+// then cloning and sort()ing the lists and comparing with originals.
+
+function isPrefixed(aProp) {
+  return aProp.startsWith("-moz");
+}
+
+function isNotPrefixed(aProp) {
+  return !isPrefixed(aProp);
+}
+
+function isCustom(aProp) {
+  return aProp.startsWith("--");
+}
+
+function isNotCustom(aProp) {
+  return !isCustom(aProp);
+}
+
+var styleList = window.getComputedStyle(document.documentElement);
+    cssA = [], mozA = [], svgA = [], customA = [];
+
+// Partition the list of property names into four lists:
+//
+//   cssA: regular, non-SVG properties
+//   mozA: '-moz-' prefixed properties
+//   svgA: SVG properties
+//   customA: '--' prefixed custom properties
+
+var list = cssA;
+for (var i = 0, j = styleList.length; i < j; i++) {
+  var prop = styleList.item(i);
+
+  switch (list) {
+    case cssA:
+      if (isPrefixed(prop)) {
+        list = mozA;
+      }
+      // fall through
+    case mozA:
+      if (prop == "clip-path") {
+        // Assumes that the first SVG property is 'clip-path'.
+        list = svgA;
+      }
+      // fall through
+    case svgA:
+      if (isCustom(prop)) {
+        list = customA;
+      }
+      // fall through
+  }
+
+  list.push(prop);
+}
+
+var cssB = cssA.slice(0).sort(),
+    mozB = mozA.slice(0).sort(),
+    svgB = svgA.slice(0).sort();
+
+is(cssA.toString(), cssB.toString(), 'CSS property list should be alphabetical');
+is(mozA.toString(), mozB.toString(), 'Experimental -moz- CSS property list should be alphabetical');
+is(svgA.toString(), svgB.toString(), 'SVG property list should be alphabetical');
+
+// We don't test that the custom property list is sorted, as the CSSOM
+// specification does not yet require it, and we don't return them
+// in sorted order.
+
+ok(!cssA.find(isPrefixed), 'Experimental -moz- CSS properties should not be in the mature CSS property list');
+ok(!cssA.find(isCustom), 'Custom CSS properties should not be in the mature CSS property list');
+ok(!mozA.find(isNotPrefixed), 'Experimental -moz- CSS property list should not contain mature CSS properties');
+ok(!mozA.find(isCustom), 'Custom CSS properties should not be in the experimental -moz- CSS property list');
+ok(!svgA.find(isPrefixed), 'Experimental -moz- CSS properties should not be in the SVG property list'); 
+ok(!svgA.find(isCustom), 'Custom CSS properties should not be in the SVG property list');
+ok(!customA.find(isNotCustom), 'Non-custom CSS properties should not be in the custom property list');
+
+</script>
+</pre>
+</body>
+</html>