From b9dde6d4ee6f4c339a7dcd6c24d572aba44ed4ba Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 10 May 2013 09:11:39 +0200 Subject: [PATCH] Bug 866424 - Part d: Update our copy of the HTML test suite and its expected failures; r=jhammel --HG-- rename : dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html.json => dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html.json --- .../Makefile.in | 16 +++ .../moz.build | 4 + .../test_window-null-names.html.json | 3 + .../documents/dom-tree-accessors/Makefile.in | 7 +- ...nt.body-getter-frameset-and-body.html.json | 3 - .../test_document.body-getter.html.json | 8 ++ .../test_nameditem-02.html.json | 8 ++ .../test_nameditem-03.html.json | 6 + .../test_nameditem-04.html.json | 3 + .../test_nameditem-05.html.json | 6 + .../test_nameditem-06.html.json | 5 + .../scripting-1/the-script-element/moz.build | 1 - .../submission/Opera/microdata/moz.build | 1 - .../html/browsers/the-window-object/moz.build | 1 + .../Makefile.in | 16 +++ .../moz.build | 4 + .../test_window-null-names.html | 20 +++ .../test_window-named-properties.html | 2 +- .../documents/dom-tree-accessors/Makefile.in | 9 +- ...ocument.body-getter-body-and-frameset.html | 18 --- ...document.body-getter-foreign-frameset.html | 17 --- ...ocument.body-getter-frameset-and-body.html | 18 --- .../test_document.body-getter.html | 125 ++++++++++++++++++ .../test_document.body-setter-01.html | 22 ++- .../dom-tree-accessors/test_nameditem-01.html | 6 +- .../dom-tree-accessors/test_nameditem-02.html | 99 ++++++++++++++ .../dom-tree-accessors/test_nameditem-03.html | 110 +++++++++++++++ .../dom-tree-accessors/test_nameditem-04.html | 104 +++++++++++++++ .../dom-tree-accessors/test_nameditem-05.html | 104 +++++++++++++++ .../dom-tree-accessors/test_nameditem-06.html | 106 +++++++++++++++ dom/imptests/moz.build | 1 + 31 files changed, 781 insertions(+), 72 deletions(-) create mode 100644 dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/Makefile.in create mode 100644 dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/moz.build create mode 100644 dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/test_window-null-names.html.json delete mode 100644 dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html.json create mode 100644 dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html.json create mode 100644 dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-02.html.json create mode 100644 dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-03.html.json create mode 100644 dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-04.html.json create mode 100644 dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-05.html.json create mode 100644 dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-06.html.json create mode 100644 dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/Makefile.in create mode 100644 dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/moz.build create mode 100644 dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/test_window-null-names.html delete mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-body-and-frameset.html delete mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-foreign-frameset.html delete mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html create mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html create mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-02.html create mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-03.html create mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-04.html create mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-05.html create mode 100644 dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-06.html diff --git a/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/Makefile.in b/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/Makefile.in new file mode 100644 index 00000000000..6c93e82a57e --- /dev/null +++ b/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/Makefile.in @@ -0,0 +1,16 @@ +# THIS FILE IS AUTOGENERATED BY parseFailures.py - DO NOT EDIT + +DEPTH := @DEPTH@ + +topsrcdir := @top_srcdir@ +srcdir := @srcdir@ +VPATH := @srcdir@ +relativesrcdir := @relativesrcdir@ + +include $(DEPTH)/config/autoconf.mk + +MOCHITEST_FILES := \ + test_window-null-names.html.json \ + $(NULL) + +include $(topsrcdir)/config/rules.mk diff --git a/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/moz.build b/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/moz.build new file mode 100644 index 00000000000..16e83110bc1 --- /dev/null +++ b/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/moz.build @@ -0,0 +1,4 @@ +# THIS FILE IS AUTOGENERATED BY parseFailures.py - DO NOT EDIT + +DIRS += [ +] diff --git a/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/test_window-null-names.html.json b/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/test_window-null-names.html.json new file mode 100644 index 00000000000..ee580a7e0bf --- /dev/null +++ b/dom/imptests/failures/html/html/browsers/the-window-object/named-access-on-the-window-object/test_window-null-names.html.json @@ -0,0 +1,3 @@ +{ + "Named access with null characters": true +} diff --git a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/Makefile.in b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/Makefile.in index f68b87894fb..4ae7980240f 100644 --- a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/Makefile.in +++ b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/Makefile.in @@ -10,11 +10,16 @@ relativesrcdir := @relativesrcdir@ include $(DEPTH)/config/autoconf.mk MOCHITEST_FILES := \ - test_document.body-getter-frameset-and-body.html.json \ + test_document.body-getter.html.json \ test_document.title-03.html.json \ test_document.title-04.xhtml.json \ test_document.title-06.html.json \ test_document.title-07.html.json \ + test_nameditem-02.html.json \ + test_nameditem-03.html.json \ + test_nameditem-04.html.json \ + test_nameditem-05.html.json \ + test_nameditem-06.html.json \ $(NULL) include $(topsrcdir)/config/rules.mk diff --git a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html.json b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html.json deleted file mode 100644 index 58b4fcd4848..00000000000 --- a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "document.body and framesets": true -} diff --git a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html.json b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html.json new file mode 100644 index 00000000000..391cfc34469 --- /dev/null +++ b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html.json @@ -0,0 +1,8 @@ +{ + "Frameset followed by body inside the html element": true, + "Body followed by frameset inside a non-HTML html element": true, + "Frameset inside an x element followed by a frameset": true, + "Frameset as the root node": true, + "Body as the root node with a frameset child": true, + "Frameset as the root node with a body child": true +} diff --git a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-02.html.json b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-02.html.json new file mode 100644 index 00000000000..c2d5686fef1 --- /dev/null +++ b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-02.html.json @@ -0,0 +1,8 @@ +{ + "If the only named item is an iframe, the contentWindow should be returned.": true, + "If there are two iframes, a collection should be returned.": true, + "If there are an iframe and another element (iframe first), a collection should be returned.": true, + "If there are an iframe and another element (iframe last), a collection should be returned.": true, + "If an iframe has a name and a different id, it should be returned by its name.": true, + "An iframe whose name looks like an array index should work.": true +} diff --git a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-03.html.json b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-03.html.json new file mode 100644 index 00000000000..40de1f65d8d --- /dev/null +++ b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-03.html.json @@ -0,0 +1,6 @@ +{ + "If there are two applets, a collection should be returned. (name)": true, + "If there are two applets, a collection should be returned. (id)": true, + "If there are two applets, a collection should be returned. (name and id)": true, + "If there are two applets, a collection should be returned. (id and name)": true +} diff --git a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-04.html.json b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-04.html.json new file mode 100644 index 00000000000..d17da27e491 --- /dev/null +++ b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-04.html.json @@ -0,0 +1,3 @@ +{ + "If there are two forms, a collection should be returned. (name)": true +} diff --git a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-05.html.json b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-05.html.json new file mode 100644 index 00000000000..cca5728188d --- /dev/null +++ b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-05.html.json @@ -0,0 +1,6 @@ +{ + "If there are two embeds, a collection should be returned. (name)": true, + "If there is one embed, it should not be returned (id)": true, + "If there are two embeds, nothing should be returned. (id)": true, + "A name shouldn't affect getting an embed by id": true +} diff --git a/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-06.html.json b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-06.html.json new file mode 100644 index 00000000000..cdc069411af --- /dev/null +++ b/dom/imptests/failures/html/html/dom/documents/dom-tree-accessors/test_nameditem-06.html.json @@ -0,0 +1,5 @@ +{ + "If there are two imgs, a collection should be returned. (name)": true, + "If there is one img, it should not be returned (id)": true, + "If there are two imgs, nothing should be returned. (id)": true +} diff --git a/dom/imptests/failures/html/html/semantics/scripting-1/the-script-element/moz.build b/dom/imptests/failures/html/html/semantics/scripting-1/the-script-element/moz.build index d3ca36bedcb..16e83110bc1 100644 --- a/dom/imptests/failures/html/html/semantics/scripting-1/the-script-element/moz.build +++ b/dom/imptests/failures/html/html/semantics/scripting-1/the-script-element/moz.build @@ -1,4 +1,3 @@ -# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # THIS FILE IS AUTOGENERATED BY parseFailures.py - DO NOT EDIT DIRS += [ diff --git a/dom/imptests/failures/html/old-tests/submission/Opera/microdata/moz.build b/dom/imptests/failures/html/old-tests/submission/Opera/microdata/moz.build index d3ca36bedcb..16e83110bc1 100644 --- a/dom/imptests/failures/html/old-tests/submission/Opera/microdata/moz.build +++ b/dom/imptests/failures/html/old-tests/submission/Opera/microdata/moz.build @@ -1,4 +1,3 @@ -# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # THIS FILE IS AUTOGENERATED BY parseFailures.py - DO NOT EDIT DIRS += [ diff --git a/dom/imptests/html/html/browsers/the-window-object/moz.build b/dom/imptests/html/html/browsers/the-window-object/moz.build index 1147426c7da..5186ffbaa0b 100644 --- a/dom/imptests/html/html/browsers/the-window-object/moz.build +++ b/dom/imptests/html/html/browsers/the-window-object/moz.build @@ -1,4 +1,5 @@ # THIS FILE IS AUTOGENERATED BY importTestsuite.py - DO NOT EDIT DIRS += [ + 'named-access-on-the-window-object', ] diff --git a/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/Makefile.in b/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/Makefile.in new file mode 100644 index 00000000000..19233801ce3 --- /dev/null +++ b/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/Makefile.in @@ -0,0 +1,16 @@ +# THIS FILE IS AUTOGENERATED BY importTestsuite.py - DO NOT EDIT + +DEPTH := @DEPTH@ + +topsrcdir := @top_srcdir@ +srcdir := @srcdir@ +VPATH := @srcdir@ +relativesrcdir := @relativesrcdir@ + +include $(DEPTH)/config/autoconf.mk + +MOCHITEST_FILES := \ + test_window-null-names.html \ + $(NULL) + +include $(topsrcdir)/config/rules.mk diff --git a/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/moz.build b/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/moz.build new file mode 100644 index 00000000000..1147426c7da --- /dev/null +++ b/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/moz.build @@ -0,0 +1,4 @@ +# THIS FILE IS AUTOGENERATED BY importTestsuite.py - DO NOT EDIT + +DIRS += [ +] diff --git a/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/test_window-null-names.html b/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/test_window-null-names.html new file mode 100644 index 00000000000..77ceb219366 --- /dev/null +++ b/dom/imptests/html/html/browsers/the-window-object/named-access-on-the-window-object/test_window-null-names.html @@ -0,0 +1,20 @@ + + +Named access with null characters + + + + + + +
+ diff --git a/dom/imptests/html/html/browsers/the-window-object/test_window-named-properties.html b/dom/imptests/html/html/browsers/the-window-object/test_window-named-properties.html index 2bbc4861554..1b1f7468291 100644 --- a/dom/imptests/html/html/browsers/the-window-object/test_window-named-properties.html +++ b/dom/imptests/html/html/browsers/the-window-object/test_window-named-properties.html @@ -51,7 +51,7 @@ test(function() { }, "constructor"); var t = async_test("Dynamic name") var t2 = async_test("Ghost name") -window.onload = t.step_func(function() { +t.step(function() { var iframe = document.getElementsByTagName("iframe")[0]; iframe.setAttribute("src", "data:text/html, - - -
- diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-foreign-frameset.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-foreign-frameset.html deleted file mode 100644 index 14692ab3f80..00000000000 --- a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-foreign-frameset.html +++ /dev/null @@ -1,17 +0,0 @@ - -document.body and a frameset in a foreign namespace - - - - - - -
- diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html deleted file mode 100644 index 7a0d51ddf37..00000000000 --- a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter-frameset-and-body.html +++ /dev/null @@ -1,18 +0,0 @@ - -document.body and framesets - - - - - - -
- diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html new file mode 100644 index 00000000000..abdb4e37b66 --- /dev/null +++ b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-getter.html @@ -0,0 +1,125 @@ + +Document.body + + + + + +
+ diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-setter-01.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-setter-01.html index 8c53e762109..319000b9418 100644 --- a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-setter-01.html +++ b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_document.body-setter-01.html @@ -1,17 +1,27 @@ Setting document.body to incorrect values - + -
diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-01.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-01.html index dcb5a0b6171..f8c6ff949db 100644 --- a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-01.html +++ b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-01.html @@ -1,8 +1,8 @@ + Named items: img id & name - - +
@@ -15,5 +15,5 @@ test(function() { assert_equals(document['a'], document.getElementsByTagName("img")[0]); assert_equals(document.b, document.getElementsByTagName("img")[0]); assert_equals(document['b'], document.getElementsByTagName("img")[0]); -}); +}, "img elements that have a name and id attribute, should be accessible by both values."); diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-02.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-02.html new file mode 100644 index 00000000000..70052263a5a --- /dev/null +++ b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-02.html @@ -0,0 +1,99 @@ + + +Named items: iframes + + + + +
+
+ + + + + + + + + + + + + + + + + + +
+ diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-03.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-03.html new file mode 100644 index 00000000000..d4962ff46ec --- /dev/null +++ b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-03.html @@ -0,0 +1,110 @@ + + +Named items: applets + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+ diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-04.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-04.html new file mode 100644 index 00000000000..89ca548a544 --- /dev/null +++ b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-04.html @@ -0,0 +1,104 @@ + + +Named items: forms + + + + +
+
+
+ +
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+ diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-05.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-05.html new file mode 100644 index 00000000000..c7bae7a51bc --- /dev/null +++ b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-05.html @@ -0,0 +1,104 @@ + + +Named items: embeds + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+ diff --git a/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-06.html b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-06.html new file mode 100644 index 00000000000..d2d3d68768a --- /dev/null +++ b/dom/imptests/html/html/dom/documents/dom-tree-accessors/test_nameditem-06.html @@ -0,0 +1,106 @@ + + +Named items: imgs + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+ diff --git a/dom/imptests/moz.build b/dom/imptests/moz.build index 23eda0bfed2..5fd1d2fea71 100644 --- a/dom/imptests/moz.build +++ b/dom/imptests/moz.build @@ -8,6 +8,7 @@ DIRS += [ 'failures/editing/conformancetest', 'failures/editing/selecttest', 'failures/html/html/browsers/the-window-object', + 'failures/html/html/browsers/the-window-object/named-access-on-the-window-object', 'failures/html/html/dom/documents/dom-tree-accessors', 'failures/html/html/dom/documents/dom-tree-accessors/document.getElementsByName', 'failures/html/html/dom/elements/global-attributes',