Bug 670873 - Use 'todo' for non-implemented attributes reflection in test_input_attributes_reflection.html. r=Ms2ger
authorMounir Lamouri <mounir.lamouri@gmail.com>
Tue, 19 Jul 2011 11:38:12 -0700
changeset 73102 34fbb290b2dbee71bd2435120835e460f2868208
parent 73101 b9b7bd239418df4585db7fc6174efc3572ee1b12
child 73103 2996df7215caf063f664c784ffc5f9ed8b5af8b7
push id20819
push usermak77@bonardo.net
push dateThu, 21 Jul 2011 12:32:52 +0000
treeherdermozilla-central@036c28e4e0f2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger
bugs670873
milestone8.0a1
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
Bug 670873 - Use 'todo' for non-implemented attributes reflection in test_input_attributes_reflection.html. r=Ms2ger
content/html/content/test/forms/test_input_attributes_reflection.html
--- a/content/html/content/test/forms/test_input_attributes_reflection.html
+++ b/content/html/content/test/forms/test_input_attributes_reflection.html
@@ -49,17 +49,19 @@ reflectBoolean({
 // .defaultChecked
 reflectBoolean({
   element: document.createElement("input"),
   attribute: { idl: "defaultChecked", content: "checked" },
 });
 
 // .checked doesn't reflect a content attribute.
 
-// TODO: dirName (not implemented)
+// .dirName
+todo("dirName" in document.createElement("input"),
+     "dirName isn't implemented yet");
 
 // .disabled
 reflectBoolean({
   element: document.createElement("input"),
   attribute: "disabled",
 });
 
 // TODO: form (HTMLFormElement)
@@ -98,19 +100,24 @@ reflectString({
   otherValues: [ "_blank", "_self", "_parent", "_top" ],
 });
 
 // TODO: height (non-negative integer)
 
 // .indeterminate doesn't reflect a content attribute.
 
 // TODO: list (HTMLElement)
-// TODO: max (not implemented)
+
+// .max
+todo("max" in document.createElement("input"), "max isn't implemented yet");
+
 // TODO: maxLength (long)
-// TODO: min (not implemented)
+
+// .min
+todo("min" in document.createElement("input"), "min isn't implemented yet");
 
 // .multiple
 reflectBoolean({
   element: document.createElement("input"),
   attribute: "multiple",
 });
 
 // .name
@@ -150,17 +157,19 @@ reflectBoolean({
 reflectUnsignedInt({
   element: document.createElement("input"),
   attribute: "size",
   nonZero: true,
   defaultValue: 20,
 });
 
 // TODO: src (URL)
-// TODO: step (not implemented)
+
+// .step
+todo("step" in document.createElement("input"), "step isn't implemented yet");
 
 // .type
 reflectLimitedEnumerated({
   element: document.createElement("input"),
   attribute: "type",
   validValues: [ "hidden", "text", "search", "tel", "url", "email", "password",
                  "checkbox", "radio", "file", "submit", "image", "reset",
                  "button" ],
@@ -173,20 +182,31 @@ reflectLimitedEnumerated({
 // .defaultValue
 reflectString({
   element: document.createElement("input"),
   attribute: { idl: "defaultValue", content: "value" },
   otherValues: [ "foo\nbar", "foo\rbar", "foo\r\nbar" ],
 });
 
 // .value doesn't reflect a content attribute.
-// TODO: valueAsDate (not implemented)
-// TODO: valueAsNumber (not implemented)
-// TODO: selectedOption (not implemented)
+
+// .valueAsDate
+todo("valueAsDate" in document.createElement("input"),
+     "valueAsDate isn't implemented yet");
+
+// .valueAsNumber
+todo("valueAsNumber" in document.createElement("input"),
+     "valueAsNumber isn't implemented yet");
+
+// .selectedOption
+todo("selectedOption" in document.createElement("input"),
+     "selectedOption isn't implemented yet");
+
 // TODO: width (non-negative integer)
+
 // .willValidate doesn't reflect a content attribute.
 // .validity doesn't reflect a content attribute.
 // .validationMessage doesn't reflect a content attribute.
 // .labels doesn't reflect a content attribute.
 
 </script>
 </pre>
 </body>