Title: [253067] trunk/LayoutTests/imported/w3c
Revision
253067
Author
commit-qu...@webkit.org
Date
2019-12-03 15:34:03 -0800 (Tue, 03 Dec 2019)

Log Message

Re-sync web-platform-tests/html/webappapis/scripting/events from upstream
https://bugs.webkit.org/show_bug.cgi?id=204814

Patch by Alexey Shvayka <shvaikal...@gmail.com> on 2019-12-03
Reviewed by Ryosuke Niwa.

Re-sync web-platform-tests/html/webappapis/scripting/events from upstream 033bf248c8fa.
Basically, this patch syncs https://github.com/web-platform-tests/wpt/pull/20421 and also
unskips "event-handler-processing-algorithm-error" directory as it is already synced.

* resources/import-expectations.json:
* web-platform-tests/html/webappapis/scripting/events/*: Updated.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (253066 => 253067)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2019-12-03 23:25:05 UTC (rev 253066)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2019-12-03 23:34:03 UTC (rev 253067)
@@ -1,3 +1,17 @@
+2019-12-03  Alexey Shvayka  <shvaikal...@gmail.com>
+
+        Re-sync web-platform-tests/html/webappapis/scripting/events from upstream
+        https://bugs.webkit.org/show_bug.cgi?id=204814
+
+        Reviewed by Ryosuke Niwa.
+
+        Re-sync web-platform-tests/html/webappapis/scripting/events from upstream 033bf248c8fa.
+        Basically, this patch syncs https://github.com/web-platform-tests/wpt/pull/20421 and also
+        unskips "event-handler-processing-algorithm-error" directory as it is already synced.
+
+        * resources/import-expectations.json:
+        * web-platform-tests/html/webappapis/scripting/events/*: Updated.
+
 2019-12-03  Zan Dobersek  <zdober...@igalia.com>
 
         Implement createImageBitmap(OffscreenCanvas)

Modified: trunk/LayoutTests/imported/w3c/resources/import-expectations.json (253066 => 253067)


--- trunk/LayoutTests/imported/w3c/resources/import-expectations.json	2019-12-03 23:25:05 UTC (rev 253066)
+++ trunk/LayoutTests/imported/w3c/resources/import-expectations.json	2019-12-03 23:34:03 UTC (rev 253067)
@@ -272,7 +272,6 @@
     "web-platform-tests/html/webappapis/dynamic-markup-insertion": "import", 
     "web-platform-tests/html/webappapis/idle-callbacks": "skip", 
     "web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_raf.html": "skip", 
-    "web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm-error": "skip", 
     "web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections": "skip", 
     "web-platform-tests/html/webappapis/the-windoworworkerglobalscope-mixin": "import", 
     "web-platform-tests/http": "skip", 

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-handleEvent-ignored-expected.txt (0 => 253067)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-handleEvent-ignored-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-handleEvent-ignored-expected.txt	2019-12-03 23:34:03 UTC (rev 253067)
@@ -0,0 +1,4 @@
+
+FAIL plain object "mouseenter" handler assert_unreached: "handleEvent" property should not be looked up Reached unreachable code
+FAIL non-callable "message" handler that is instance of Function assert_unreached: "handleEvent" property should not be looked up Reached unreachable code
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-handleEvent-ignored.html (0 => 253067)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-handleEvent-ignored.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-handleEvent-ignored.html	2019-12-03 23:34:03 UTC (rev 253067)
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>"handleEvent" property of EventHandler should be ignored</title>
+<link rel="help" href=""
+<script src=""
+<script src=""
+<div id="log"></div>
+<script>
+"use strict";
+
+test(t => {
+  const handler = Object.create(null, {
+    handleEvent: {
+      get: t.unreached_func('"handleEvent" property should not be looked up'),
+    },
+  });
+
+  const el = document.createElement("div");
+  el._onmouseenter_ = handler;
+  el.dispatchEvent(new MouseEvent("mouseenter"));
+}, 'plain object "mouseenter" handler');
+
+async_test(t => {
+  const handler = Object.create(Function.prototype, {
+    handleEvent: {
+      get: t.unreached_func('"handleEvent" property should not be looked up'),
+    },
+  });
+  assert_true(handler instanceof Function);
+
+  window._onmessage_ = handler;
+  window.postMessage({}, "*");
+
+  step_timeout(() => {
+    t.done();
+  }, 50);
+}, 'non-callable "message" handler that is instance of Function');
+</script>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt (253066 => 253067)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt	2019-12-03 23:25:05 UTC (rev 253066)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt	2019-12-03 23:34:03 UTC (rev 253067)
@@ -1,5 +1,5 @@
 
-PASS body.onresize should set the window.onload handler 
+PASS body.onresize should set the window.onresize handler 
 PASS document.onresize should set the document.onresize handler 
 PASS meta.onresize should set the meta.onresize handler 
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html (253066 => 253067)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html	2019-12-03 23:25:05 UTC (rev 253066)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html	2019-12-03 23:34:03 UTC (rev 253067)
@@ -6,7 +6,7 @@
 <script src=""
 <div id="log"></div>
 <script>
-var t = async_test("body.onresize should set the window.onload handler")
+var t = async_test("body.onresize should set the window.onresize handler")
 window._onresize_ = t.step_func(function() {
   assert_unreached("This handler should be overwritten.")
 })

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/w3c-import.log (253066 => 253067)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/w3c-import.log	2019-12-03 23:25:05 UTC (rev 253066)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/w3c-import.log	2019-12-03 23:34:03 UTC (rev 253067)
@@ -21,6 +21,7 @@
 /LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html
 /LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-frameset-window.html
 /LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-handleEvent-ignored.html
 /LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-_javascript_.html
 /LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html
 /LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm.html
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to