summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/historical.html
blob: 5cba688ff83e6dae90100b315a9fa86f69974502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>