diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/historical.html')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/historical.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/historical.html b/testing/web-platform/tests/html/editing/dnd/historical.html new file mode 100644 index 0000000000..5cba688ff8 --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/historical.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<title>Historical drag-and-drop features</title> +<meta charset="utf-8"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> + +<script> +"use strict"; + +test(() => { + const potentialBadLocations = [ + window, + document, + HTMLElement.prototype, + SVGElement.prototype, + Document.prototype, + HTMLDocument.prototype, + Element.prototype + ]; + for (const location of potentialBadLocations) { + assert_false("ondragexit" in location, + `${location.constructor.name} must not have a property "ondragexit"`); + } +}, `ondragexit must not be present on the GlobalEventHandlers locations`); +</script> |