summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/events/Event-isTrusted.any.js
blob: 00bcecd0ed67a07128a2555820d6e12f72aee990 (plain)
1
2
3
4
5
6
7
8
9
10
11
test(function() {
  var desc1 = Object.getOwnPropertyDescriptor(new Event("x"), "isTrusted");
  assert_not_equals(desc1, undefined);
  assert_equals(typeof desc1.get, "function");

  var desc2 = Object.getOwnPropertyDescriptor(new Event("x"), "isTrusted");
  assert_not_equals(desc2, undefined);
  assert_equals(typeof desc2.get, "function");

  assert_equals(desc1.get, desc2.get);
});