Skip to content

Commit

Permalink
Add a unique test for event.path removal (#32351)
Browse files Browse the repository at this point in the history
This is purely to work around the limitation that the Interop-2022
tooling can't work with subtests, and can be removed once that is no
longer relevant, in favour of the test in historical.html.
  • Loading branch information
jgraham authored Jan 12, 2022
1 parent 5e29507 commit 39fa8c0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dom/eventPathRemoved.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<title>Event.path must be removed</title>
<!-- Note that this duplicates a test in historical.html for the purposes of
using in the Interop-2022 metric -->
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
test(() => {
const name = "path";
assert_false(name in Event.prototype)
assert_equals(Event.prototype[name], undefined)
assert_false(name in new Event("test"))
assert_equals((new Event("test"))[name], undefined)
}, "Event.prototype should not have this property: " + name)
</script>

0 comments on commit 39fa8c0

Please sign in to comment.