⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 201826 in webkit


Ignore:
Timestamp:
Jun 8, 2016, 12:50:20 PM (10 years ago)
Author:
Chris Dumez
Message:

Import new AddEventListenerOptions test from W3C web-platform-tests
https://bugs.webkit.org/show_bug.cgi?id=158535

Reviewed by Ryosuke Niwa.

Import new AddEventListenerOptions test from W3C web-platform-tests.

  • web-platform-tests/dom/events/AddEventListenerOptions-passive-expected.txt: Added.
  • web-platform-tests/dom/events/AddEventListenerOptions-passive.html: Added.
  • web-platform-tests/dom/events/EventListenerOptions-capture.html:
Location:
trunk/LayoutTests/imported/w3c
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r201757 r201826  
     12016-06-08  Chris Dumez  <cdumez@apple.com>
     2
     3        Import new AddEventListenerOptions test from W3C web-platform-tests
     4        https://bugs.webkit.org/show_bug.cgi?id=158535
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Import new AddEventListenerOptions test from W3C web-platform-tests.
     9
     10        * web-platform-tests/dom/events/AddEventListenerOptions-passive-expected.txt: Added.
     11        * web-platform-tests/dom/events/AddEventListenerOptions-passive.html: Added.
     12        * web-platform-tests/dom/events/EventListenerOptions-capture.html:
     13
    1142016-06-07  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventListenerOptions-capture.html

    r201757 r201826  
    1717  }
    1818  document.addEventListener('test', handler, captureValue);
    19   document.body.dispatchEvent(new Event('test', {'bubbles': true}));
     19  document.body.dispatchEvent(new Event('test', {bubbles: true}));
    2020  document.removeEventListener('test', handler, captureValue);
    21   document.body.dispatchEvent(new Event('test', {'bubbles': true}));
     21  document.body.dispatchEvent(new Event('test', {bubbles: true}));
    2222  assert_equals(handlerPhase, expectedValue, "Incorrect event phase for value: " + JSON.stringify(captureValue));
    2323}
     
    7373  document.addEventListener('test', handler, addOptionValue);
    7474  document.removeEventListener('test', handler, removeOptionValue);
    75   document.body.dispatchEvent(new Event('test', {'bubbles': true}));
     75  document.body.dispatchEvent(new Event('test', {bubbles: true}));
    7676  assert_equals(!handlerInvoked, expectedEquality, "equivalence of options " +
    7777    JSON.stringify(addOptionValue) + " and " + JSON.stringify(removeOptionValue));
Note: See TracChangeset for help on using the changeset viewer.