From aeb6b1795a82ccee29ec1b544c734d9eb3260108 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 31 Aug 2016 09:45:41 +0200 Subject: [PATCH] Add a test for the exact timing of the error event for invalid event handlers. --- tests/wpt/metadata/MANIFEST.json | 6 +++++ ...ompiled-raw-handler-compiled-late.html.ini | 5 ++++ ...-uncompiled-raw-handler-compiled-late.html | 25 +++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 tests/wpt/metadata/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html.ini create mode 100644 tests/wpt/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 7bbdda39bc3..214162045a5 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -37244,6 +37244,12 @@ "path": "html/semantics/text-level-semantics/the-data-element/data.value-001.html", "url": "/html/semantics/text-level-semantics/the-data-element/data.value-001.html" } + ], + "html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html": [ + { + "path": "html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html", + "url": "/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html" + } ] } }, diff --git a/tests/wpt/metadata/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html.ini b/tests/wpt/metadata/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html.ini new file mode 100644 index 00000000000..dbe221f031e --- /dev/null +++ b/tests/wpt/metadata/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html.ini @@ -0,0 +1,5 @@ +[invalid-uncompiled-raw-handler-compiled-late.html] + type: testharness + [Invalid uncompiled raw handlers should only be compiled when about to call them.] + expected: FAIL + diff --git a/tests/wpt/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html b/tests/wpt/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html new file mode 100644 index 00000000000..a0e7bbcdd31 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html @@ -0,0 +1,25 @@ + + +Invalid uncompiled raw handlers should only be compiled when about to call them. + + + + +