Bug 1464865: Fix some typos in WPT tests. r?xidorn draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 29 May 2018 13:05:11 +0200
changeset 800845 08ee828910cc36edff1cef7c07f04cfd9d5e7aba
parent 800844 d5952d88090e8222903b763f57cc0a62b600cd56
push id111503
push userbmo:emilio@crisal.io
push dateTue, 29 May 2018 11:06:36 +0000
reviewersxidorn
bugs1464865
milestone62.0a1
Bug 1464865: Fix some typos in WPT tests. r?xidorn MozReview-Commit-ID: CSLZGbu23js
testing/web-platform/tests/css/cssom/insertRule-charset-no-index.html
testing/web-platform/tests/css/cssom/insertRule-import-no-index.html
testing/web-platform/tests/css/cssom/insertRule-namespace-no-index.html
testing/web-platform/tests/css/cssom/insertRule-no-index.html
--- a/testing/web-platform/tests/css/cssom/insertRule-charset-no-index.html
+++ b/testing/web-platform/tests/css/cssom/insertRule-charset-no-index.html
@@ -14,17 +14,17 @@
 <div id="log"></div>
 <script type="text/javascript">
     var sheet = document.getElementById("linkElement").sheet;
     test(function() {
         assert_equals(sheet.cssRules.length, 0);
         sheet.insertRule("p { color: green; }");
         assert_equals(sheet.cssRules.length, 1);
         assert_equals(sheet.cssRules.item(0).cssText, "p { color: green; }");
-    }, "inserRule with charset and omitted index argument");
+    }, "insertRule with charset and omitted index argument");
 
     test(function() {
         assert_equals(sheet.cssRules.length, 1);
         sheet.insertRule("p { color: yellow; }", undefined);
         assert_equals(sheet.cssRules.length, 2);
         assert_equals(sheet.cssRules.item(0).cssText, "p { color: yellow; }");
     }, "insertRule with charset and undefined index argument");
 </script>
--- a/testing/web-platform/tests/css/cssom/insertRule-import-no-index.html
+++ b/testing/web-platform/tests/css/cssom/insertRule-import-no-index.html
@@ -15,17 +15,17 @@
 <body>
 <div id="log"></div>
 <script type="text/javascript">
     var sheet = document.getElementById("styleElement").sheet;
     test(function() {
         assert_equals(sheet.cssRules.length, 1);
         assert_throws("HierarchyRequestError", function() { sheet.insertRule("p { color: green; }"); });
         assert_equals(sheet.cssRules.length, 1);
-    }, "inserRule with import and omitted index argument");
+    }, "insertRule with import and omitted index argument");
 
     test(function() {
         assert_equals(sheet.cssRules.length, 1);
         assert_throws("HierarchyRequestError", function() { sheet.insertRule("p { color: yellow; }", undefined); });
         assert_equals(sheet.cssRules.length, 1);
         assert_equals(sheet.cssRules.item(0).cssText, "@import url(\"support/a-green.css\");");
     }, "insertRule with import and undefined index argument");
 </script>
--- a/testing/web-platform/tests/css/cssom/insertRule-namespace-no-index.html
+++ b/testing/web-platform/tests/css/cssom/insertRule-namespace-no-index.html
@@ -17,24 +17,24 @@
 <body>
 <div id="log"></div>
 <script type="text/javascript">
     var sheet = document.getElementById("styleElement").sheet;
     test(function() {
         assert_equals(sheet.cssRules.length, 3);
         assert_throws("HierarchyRequestError", function() { sheet.insertRule("p { color: green; }"); });
         assert_equals(sheet.cssRules.length, 3);
-    }, "inserRule with namespace and omitted index argument");
+    }, "insertRule with namespace and omitted index argument");
 
     test(function() {
         assert_equals(sheet.cssRules.length, 3);
         assert_throws("HierarchyRequestError", function() { sheet.insertRule("p { color: yellow; }", undefined); });
         assert_equals(sheet.cssRules.length, 3);
     }, "insertRule with namespace and undefined index argument");
 
     test(function() {
         assert_equals(sheet.cssRules.length, 3);
         sheet.insertRule("@import url(\"support/a-green.css\");");
         assert_equals(sheet.cssRules.length, 4);
-    }, "inserRule with namespace and omitted index argument should insert import");
+    }, "insertRule with namespace and omitted index argument should insert import");
 </script>
 </body>
 </html>
--- a/testing/web-platform/tests/css/cssom/insertRule-no-index.html
+++ b/testing/web-platform/tests/css/cssom/insertRule-no-index.html
@@ -17,17 +17,17 @@
 <div id="log"></div>
 <script type="text/javascript">
     var sheet = document.getElementById("styleElement").sheet;
     test(function() {
         assert_equals(sheet.cssRules.length, 1);
         sheet.insertRule("p { color: green; }");
         assert_equals(sheet.cssRules.length, 2);
         assert_equals(sheet.cssRules.item(0).cssText, "p { color: green; }");
-    }, "inserRule with omitted index argument");
+    }, "insertRule with omitted index argument");
 
     test(function() {
         assert_equals(sheet.cssRules.length, 2);
         sheet.insertRule("p { color: yellow; }", undefined);
         assert_equals(sheet.cssRules.length, 3);
         assert_equals(sheet.cssRules.item(0).cssText, "p { color: yellow; }");
     }, "insertRule with undefined index argument");
 </script>