Title: [204369] trunk/LayoutTests
Revision
204369
Author
[email protected]
Date
2016-08-10 20:26:55 -0700 (Wed, 10 Aug 2016)

Log Message

Pull in recent upstream web-platform-tests changes for dom/ and html/
https://bugs.webkit.org/show_bug.cgi?id=160759

Reviewed by Alex Christensen.

* web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt:
* web-platform-tests/dom/events/EventTarget-dispatchEvent.html:
* web-platform-tests/dom/nodes/Document-Element-getElementsByTagName.js:
(test_getElementsByTagName):
* web-platform-tests/dom/nodes/Document-getElementsByTagName-expected.txt:
* web-platform-tests/dom/nodes/Element-getElementsByTagName-expected.txt:

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (204368 => 204369)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2016-08-11 02:21:42 UTC (rev 204368)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2016-08-11 03:26:55 UTC (rev 204369)
@@ -1,5 +1,19 @@
 2016-08-10  Chris Dumez  <[email protected]>
 
+        Pull in recent upstream web-platform-tests changes for dom/ and html/
+        https://bugs.webkit.org/show_bug.cgi?id=160759
+
+        Reviewed by Alex Christensen.
+
+        * web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt:
+        * web-platform-tests/dom/events/EventTarget-dispatchEvent.html:
+        * web-platform-tests/dom/nodes/Document-Element-getElementsByTagName.js:
+        (test_getElementsByTagName):
+        * web-platform-tests/dom/nodes/Document-getElementsByTagName-expected.txt:
+        * web-platform-tests/dom/nodes/Element-getElementsByTagName-expected.txt:
+
+2016-08-10  Chris Dumez  <[email protected]>
+
         Optimization in Node.insertBefore() is not spec-compliant
         https://bugs.webkit.org/show_bug.cgi?id=160746
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt (204368 => 204369)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt	2016-08-11 02:21:42 UTC (rev 204368)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt	2016-08-11 03:26:55 UTC (rev 204369)
@@ -1,4 +1,42 @@
-CONSOLE MESSAGE: line 20: TypeError: aliases.forEach is not a function. (In 'aliases.forEach', 'aliases.forEach' is undefined)
+CONSOLE MESSAGE: line 60: Error
 
 PASS Calling dispatchEvent(null). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (AnimationEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (BeforeUnloadEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (CloseEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (CompositionEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (CustomEvent). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (DeviceMotionEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (DeviceOrientationEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (DragEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (ErrorEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (Event). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (Events). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (FocusEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (HashChangeEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (HTMLEvents). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (IDBVersionChangeEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (KeyboardEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (MessageEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (MouseEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (MouseEvents). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (PageTransitionEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (PopStateEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (ProgressEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (StorageEvent). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (SVGEvents). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (SVGZoomEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (SVGZoomEvents). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (TextEvent). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (TouchEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (TrackEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (TransitionEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (UIEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (UIEvents). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (WebGLContextEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (WheelEvent). 
+PASS If the event's dispatch flag is set, an InvalidStateError must be thrown. 
+PASS Exceptions from event listeners must not be propagated. 
+PASS Event listeners added during dispatch should be called 
+PASS Event listeners should be called in order of addition 
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent.html (204368 => 204369)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent.html	2016-08-11 02:21:42 UTC (rev 204368)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent.html	2016-08-11 03:26:55 UTC (rev 204369)
@@ -17,13 +17,13 @@
   assert_throws(new TypeError(), function() { document.dispatchEvent(null) })
 }, "Calling dispatchEvent(null).")
 
-aliases.forEach(function(alias) {
+for (var alias in aliases) {
   test(function() {
-    var e = document.createEvent(alias[0])
+    var e = document.createEvent(alias)
     assert_equals(e.type, "", "Event type should be empty string before initialization")
     assert_throws("InvalidStateError", function() { document.dispatchEvent(e) })
-  }, "If the event's initialized flag is not set, an InvalidStateError must be thrown (" + alias [0] + ").")
-})
+  }, "If the event's initialized flag is not set, an InvalidStateError must be thrown (" + alias + ").")
+}
 
 var dispatch_dispatch = async_test("If the event's dispatch flag is set, an InvalidStateError must be thrown.")
 dispatch_dispatch.step(function() {

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-Element-getElementsByTagName.js (204368 => 204369)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-Element-getElementsByTagName.js	2016-08-11 02:21:42 UTC (rev 204368)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-Element-getElementsByTagName.js	2016-08-11 03:26:55 UTC (rev 204369)
@@ -162,17 +162,17 @@
   test(function() {
     var t = element.appendChild(document.createElementNS("http://www.w3.org/1999/xhtml", "test:aÇ"))
     this.add_cleanup(function() {element.removeChild(t)})
-    assert_array_equals(context.getElementsByTagName("AÇ"), [t], "All uppercase input")
-    assert_array_equals(context.getElementsByTagName("aÇ"), [t], "Ascii lowercase input")
-    assert_array_equals(context.getElementsByTagName("aç"), [], "All lowercase input")
+    assert_array_equals(context.getElementsByTagName("TEST:AÇ"), [t], "All uppercase input")
+    assert_array_equals(context.getElementsByTagName("test:aÇ"), [t], "Ascii lowercase input")
+    assert_array_equals(context.getElementsByTagName("test:aç"), [], "All lowercase input")
   }, "Element in HTML namespace, prefix, non-ascii characters in name")
 
   test(function() {
-    var t = element.appendChild(document.createElementNS("test", "test:AÇ"))
+    var t = element.appendChild(document.createElementNS("test", "TEST:AÇ"))
     this.add_cleanup(function() {element.removeChild(t)})
-    assert_array_equals(context.getElementsByTagName("AÇ"), [t], "All uppercase input")
-    assert_array_equals(context.getElementsByTagName("aÇ"), [], "Ascii lowercase input")
-    assert_array_equals(context.getElementsByTagName("aç"), [], "All lowercase input")
+    assert_array_equals(context.getElementsByTagName("TEST:AÇ"), [t], "All uppercase input")
+    assert_array_equals(context.getElementsByTagName("test:aÇ"), [], "Ascii lowercase input")
+    assert_array_equals(context.getElementsByTagName("test:aç"), [], "All lowercase input")
   }, "Element in non-HTML namespace, prefix, non-ascii characters in name")
 
   test(function() {

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-getElementsByTagName-expected.txt (204368 => 204369)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-getElementsByTagName-expected.txt	2016-08-11 02:21:42 UTC (rev 204368)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-getElementsByTagName-expected.txt	2016-08-11 03:26:55 UTC (rev 204369)
@@ -16,7 +16,7 @@
 FAIL Element in non-HTML namespace, prefix, uppercase name assert_array_equals: lengths differ, expected 0 got 1
 PASS Element in HTML namespace, no prefix, non-ascii characters in name 
 PASS Element in non-HTML namespace, non-ascii characters in name 
-PASS Element in HTML namespace, prefix, non-ascii characters in name 
-PASS Element in non-HTML namespace, prefix, non-ascii characters in name 
+FAIL Element in HTML namespace, prefix, non-ascii characters in name assert_array_equals: All uppercase input lengths differ, expected 1 got 0
+FAIL Element in non-HTML namespace, prefix, non-ascii characters in name assert_array_equals: All uppercase input lengths differ, expected 1 got 0
 PASS getElementsByTagName('*') 
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagName-expected.txt (204368 => 204369)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagName-expected.txt	2016-08-11 02:21:42 UTC (rev 204368)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagName-expected.txt	2016-08-11 03:26:55 UTC (rev 204369)
@@ -16,8 +16,8 @@
 FAIL Element in non-HTML namespace, prefix, uppercase name assert_array_equals: lengths differ, expected 0 got 1
 PASS Element in HTML namespace, no prefix, non-ascii characters in name 
 PASS Element in non-HTML namespace, non-ascii characters in name 
-PASS Element in HTML namespace, prefix, non-ascii characters in name 
-PASS Element in non-HTML namespace, prefix, non-ascii characters in name 
+FAIL Element in HTML namespace, prefix, non-ascii characters in name assert_array_equals: All uppercase input lengths differ, expected 1 got 0
+FAIL Element in non-HTML namespace, prefix, non-ascii characters in name assert_array_equals: All uppercase input lengths differ, expected 1 got 0
 PASS getElementsByTagName('*') 
 PASS Matching the context object 
 

Added: trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt (0 => 204369)


--- trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt	2016-08-11 03:26:55 UTC (rev 204369)
@@ -0,0 +1,42 @@
+CONSOLE MESSAGE: line 60: Error
+
+PASS Calling dispatchEvent(null). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (AnimationEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (BeforeUnloadEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (CloseEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (CompositionEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (CustomEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (DeviceMotionEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (DeviceOrientationEvent). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (DragEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (ErrorEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (Event). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (Events). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (FocusEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (HashChangeEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (HTMLEvents). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (IDBVersionChangeEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (KeyboardEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (MessageEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (MouseEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (MouseEvents). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (PageTransitionEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (PopStateEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (ProgressEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (StorageEvent). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (SVGEvents). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (SVGZoomEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (SVGZoomEvents). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (TextEvent). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (TouchEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (TrackEvent). The operation is not supported.
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (TransitionEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (UIEvent). 
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (UIEvents). 
+FAIL If the event's initialized flag is not set, an InvalidStateError must be thrown (WebGLContextEvent). The operation is not supported.
+PASS If the event's initialized flag is not set, an InvalidStateError must be thrown (WheelEvent). 
+PASS If the event's dispatch flag is set, an InvalidStateError must be thrown. 
+PASS Exceptions from event listeners must not be propagated. 
+PASS Event listeners added during dispatch should be called 
+PASS Event listeners should be called in order of addition 
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to