Bug 1250401 - test comments fixed, r=me
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 03 Mar 2016 15:16:41 +0100
changeset 286681 d64e1ec71f9a4be5d2e364bdf183a087abe7b143
parent 286680 2213f8796d4f4a627bc7c4baadf81fddf15a04c8
child 286682 3b47147c00cca85774777f3d58e162207bd8432b
push id18000
push usercbook@mozilla.com
push dateFri, 04 Mar 2016 12:40:23 +0000
treeherderfx-team@365dff9e6e1f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1250401
milestone47.0a1
Bug 1250401 - test comments fixed, r=me
dom/html/test/test_bug1250401.html
--- a/dom/html/test/test_bug1250401.html
+++ b/dom/html/test/test_bug1250401.html
@@ -30,17 +30,17 @@ function test_add() {
   g2.appendChild(o2);
   select.add(g2, 0);
 
   is(select.children.length, 1, "Select has 1 item");
   is(select.firstChild, g1, "First item is g1");
   is(select.firstChild.children.length, 2, "g2 has 2 children");
   is(select.firstChild.children[0], g2, "g1 has 2 children: g2");
   is(select.firstChild.children[1], o1, "g1 has 2 children: o1");
-  is(o1.index, 0, "o2.index should be 1");
+  is(o1.index, 0, "o1.index should be 0");
   is(o2.index, 0, "o2.index should be 0");
 }
 
 function test_append() {
   var select = document.createElement("select");
 
   var g1 = document.createElement("optgroup");
   var o1 = document.createElement("option");
@@ -52,42 +52,42 @@ function test_append() {
   g2.appendChild(o2);
   g1.appendChild(g2);
 
   is(select.children.length, 1, "Select has 1 item");
   is(select.firstChild, g1, "First item is g1");
   is(select.firstChild.children.length, 2, "g2 has 2 children");
   is(select.firstChild.children[0], o1, "g1 has 2 children: o1");
   is(select.firstChild.children[1], g2, "g1 has 2 children: g1");
-  is(o1.index, 0, "o2.index should be 0");
+  is(o1.index, 0, "o1.index should be 0");
   is(o2.index, 0, "o2.index should be 0");
 }
 
 function test_no_select() {
   var g1 = document.createElement("optgroup");
   var o1 = document.createElement("option");
   g1.appendChild(o1);
 
   var g2 = document.createElement("optgroup");
   var o2 = document.createElement("option");
   g2.appendChild(o2);
   g1.appendChild(g2);
 
   is(g1.children.length, 2, "g2 has 2 children");
   is(g1.children[0], o1, "g1 has 2 children: o1");
   is(g1.children[1], g2, "g1 has 2 children: g1");
-  is(o1.index, 0, "o2.index should be 0");
+  is(o1.index, 0, "o1.index should be 0");
   is(o2.index, 0, "o2.index should be 0");
 }
 
 function test_no_parent() {
   var o1 = document.createElement("option");
   var o2 = document.createElement("option");
 
-  is(o1.index, 0, "o2.index should be 0");
+  is(o1.index, 0, "o1.index should be 0");
   is(o2.index, 0, "o2.index should be 0");
 }
 
 test_add();
 test_append();
 test_no_select();
 test_no_parent();