Bug 1317466 - Remove legacycaller annotations in web platform tests from interfaces that don't have legacy callers in the spec. r=jgraham, a=test-only
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 15 Nov 2016 17:44:43 -0500
changeset 353495 44bd0aff9b6974277cc78299e3d4b86527bd3a5c
parent 353494 9572fd32f33d6356518b05da170e9b54a7f60c4f
child 353496 8f8be75d4cc580e418a4ca50ad0afe75c65f78f3
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham, test-only
bugs1317466
milestone52.0a2
Bug 1317466 - Remove legacycaller annotations in web platform tests from interfaces that don't have legacy callers in the spec. r=jgraham, a=test-only
testing/web-platform/meta/html/dom/interfaces.html.ini
testing/web-platform/tests/html/dom/interfaces.html
--- a/testing/web-platform/meta/html/dom/interfaces.html.ini
+++ b/testing/web-platform/meta/html/dom/interfaces.html.ini
@@ -407,82 +407,16 @@
     expected: FAIL
 
   [HTMLCollection interface: document.all must inherit property "namedItem" with the proper type (2)]
     expected: FAIL
 
   [HTMLCollection interface: calling namedItem(DOMString) on document.all with too few arguments must throw TypeError]
     expected: FAIL
 
-  [HTMLFormControlsCollection must be primary interface of document.createElement("form").elements]
-    expected: FAIL
-
-  [Stringification of document.createElement("form").elements]
-    expected: FAIL
-
-  [HTMLFormControlsCollection interface: document.createElement("form").elements must inherit property "namedItem" with the proper type (0)]
-    expected: FAIL
-
-  [HTMLFormControlsCollection interface: calling namedItem(DOMString) on document.createElement("form").elements with too few arguments must throw TypeError]
-    expected: FAIL
-
-  [HTMLCollection interface: document.createElement("form").elements must inherit property "length" with the proper type (0)]
-    expected: FAIL
-
-  [HTMLCollection interface: document.createElement("form").elements must inherit property "item" with the proper type (1)]
-    expected: FAIL
-
-  [HTMLCollection interface: calling item(unsigned long) on document.createElement("form").elements with too few arguments must throw TypeError]
-    expected: FAIL
-
-  [HTMLCollection interface: document.createElement("form").elements must inherit property "namedItem" with the proper type (2)]
-    expected: FAIL
-
-  [HTMLCollection interface: calling namedItem(DOMString) on document.createElement("form").elements with too few arguments must throw TypeError]
-    expected: FAIL
-
-  [HTMLOptionsCollection must be primary interface of document.createElement("select").options]
-    expected: FAIL
-
-  [Stringification of document.createElement("select").options]
-    expected: FAIL
-
-  [HTMLOptionsCollection interface: document.createElement("select").options must inherit property "length" with the proper type (0)]
-    expected: FAIL
-
-  [HTMLOptionsCollection interface: document.createElement("select").options must inherit property "add" with the proper type (3)]
-    expected: FAIL
-
-  [HTMLOptionsCollection interface: calling add([object Object\],[object Object\],[object Object\],[object Object\]) on document.createElement("select").options with too few arguments must throw TypeError]
-    expected: FAIL
-
-  [HTMLOptionsCollection interface: document.createElement("select").options must inherit property "remove" with the proper type (4)]
-    expected: FAIL
-
-  [HTMLOptionsCollection interface: calling remove(long) on document.createElement("select").options with too few arguments must throw TypeError]
-    expected: FAIL
-
-  [HTMLOptionsCollection interface: document.createElement("select").options must inherit property "selectedIndex" with the proper type (5)]
-    expected: FAIL
-
-  [HTMLCollection interface: document.createElement("select").options must inherit property "length" with the proper type (0)]
-    expected: FAIL
-
-  [HTMLCollection interface: document.createElement("select").options must inherit property "item" with the proper type (1)]
-    expected: FAIL
-
-  [HTMLCollection interface: calling item(unsigned long) on document.createElement("select").options with too few arguments must throw TypeError]
-    expected: FAIL
-
-  [HTMLCollection interface: document.createElement("select").options must inherit property "namedItem" with the proper type (2)]
-    expected: FAIL
-
-  [HTMLCollection interface: calling namedItem(DOMString) on document.createElement("select").options with too few arguments must throw TypeError]
-    expected: FAIL
-
   [DOMElementMap interface: existence and properties of interface object]
     expected: FAIL
 
   [DOMElementMap interface object length]
     expected: FAIL
 
   [DOMElementMap interface: existence and properties of interface prototype object]
     expected: FAIL
--- a/testing/web-platform/tests/html/dom/interfaces.html
+++ b/testing/web-platform/tests/html/dom/interfaces.html
@@ -877,27 +877,26 @@ interface HTMLAllCollection {
   readonly attribute unsigned long length;
   getter Element? item(unsigned long index);
   (HTMLCollection or Element)? item(DOMString name);
   legacycaller getter (HTMLCollection or Element)? namedItem(DOMString name);
 };
 
 interface HTMLFormControlsCollection : HTMLCollection {
   // inherits length and item()
-  legacycaller getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()
+  getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()
 };
 
 interface RadioNodeList : NodeList {
           attribute DOMString value;
 };
 
 interface HTMLOptionsCollection : HTMLCollection {
   // inherits item()
            attribute unsigned long length; // shadows inherited length
-  legacycaller HTMLOptionElement? (DOMString name);
   setter creator void (unsigned long index, HTMLOptionElement? option);
   void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
   void remove(long index);
            attribute long selectedIndex;
 };
 
 typedef sequence<any> PropertyValueArray;