diff options
2 files changed, 2 insertions, 7 deletions
diff --git a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/addEventListener.html.ini b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/addEventListener.html.ini deleted file mode 100644 index 266639e92b7..00000000000 --- a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/addEventListener.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[addEventListener.html] - type: testharness - [window.onerror - addEventListener] - expected: FAIL - diff --git a/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html b/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html index b2cb36b9729..dbb1cdd5a90 100644 --- a/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html +++ b/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html @@ -11,9 +11,9 @@ setup({allow_uncaught_exception:true}); var t = async_test(); var ran = false; - // spec doesn't say to fire an event so this should do nothing window.addEventListener('error', t.step_func(function(e){ ran = true; + assert_true(e.isTrusted, 'isTrusted'); }), false); </script> <script> @@ -24,7 +24,7 @@ </script> <script> t.step(function(){ - assert_false(ran, 'ran'); + assert_true(ran, 'ran'); t.done(); }); </script> |