Follow-up for bug 600813 : cleaning tests. r=sicking a=tests
authorMounir Lamouri <mounir.lamouri@gmail.com>
Thu, 07 Oct 2010 12:32:35 +0200
changeset 55106 b4db96c6b60842cae076ee13e6752f26b8582830
parent 55105 e9e9276b8f0d44c17e398d23ab2ec9c944e2b73c
child 55107 a88c80b1b47134d24d7e399cc86d403e3729580a
push id16132
push usermlamouri@mozilla.com
push dateThu, 07 Oct 2010 14:25:40 +0000
treeherdermozilla-central@5b81ab0ba5ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking, tests
bugs600813
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Follow-up for bug 600813 : cleaning tests. r=sicking a=tests
content/html/content/test/test_bug585508.html
--- a/content/html/content/test/test_bug585508.html
+++ b/content/html/content/test/test_bug585508.html
@@ -28,18 +28,16 @@ var enctypeTestData = [
 
 var methodTestData = [
   // Default value.
   [ "get" ],
   // Valid values.
   [ "get", "post" ],
   // Invalid values.
   [ "", " ", "foo" ],
-  // TODO values, see bug 583289 and bug 583288.
-  [ "delete", "put" ],
 ];
 
 function checkAttribute(form, attrName, idlName, data)
 {
   is(form.getAttribute(attrName), null,
      "By default " + attrName + " content attribute should be null");
   is(form[idlName], data[0][0],
      "By default " + idlName + " IDL attribute should be equal to " +
@@ -57,25 +55,16 @@ function checkAttribute(form, attrName, 
   // Invalid values.
   for (i in data[2]) {
     form.setAttribute(attrName, data[2][i]);
     is(form.getAttribute(attrName), data[2][i],
        "getAttribute should return the content attribute");
     is(form[idlName], data[0][0], "When getting, " + idlName + " IDL attribute " +
        "should return the default value if the content attribute value isn't known");
   }
-
-  // TODO values.
-  for (i in data[3]) {
-    form.setAttribute(attrName, data[3][i]);
-    is(form.getAttribute(attrName), data[3][i],
-       "getAttribute should return the content attribute");
-    todo_is(form[idlName], data[3][i], "When getting, " + idlName + " IDL attribute " +
-       "should be equal to the content attribute if the value is known");
-  }
 }
 
 var form = document.createElement('form');
 var input = document.createElement('input');
 var button = document.createElement('button');
 
 checkAttribute(form, 'enctype', 'enctype', enctypeTestData);
 checkAttribute(form, 'method', 'method', methodTestData);