Bug 1464865: Fix some typos in WPT tests. r?xidorn
MozReview-Commit-ID: CSLZGbu23js
--- 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>