Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: LayoutTests/fast/events/constructors/related-event-constructor-expected.txt

Issue 443053002: Add support for RelatedEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Done Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 This tests the constructor for the RelatedEvent DOM class.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS new RelatedEvent('eventType').bubbles is false
7 PASS new RelatedEvent('eventType').cancelable is false
8 PASS new RelatedEvent('eventType').relatedTarget is null
9 PASS new RelatedEvent('eventType', { bubbles: false }).bubbles is false
10 PASS new RelatedEvent('eventType', { bubbles: true }).bubbles is true
11 PASS new RelatedEvent('eventType', { cancelable: false }).cancelable is false
12 PASS new RelatedEvent('eventType', { cancelable: true }).cancelable is true
13 PASS new RelatedEvent('eventType', { relatedTarget: testDiv }).relatedTarget is testDiv
14 PASS new RelatedEvent('eventType', { relatedTarget: document }).relatedTarget is document
15 PASS new RelatedEvent('eventType', { relatedTarget: window }).relatedTarget is w indow
16 PASS new RelatedEvent('eventType', { relatedTarget: testObject }).relatedTarget threw exception TypeError: Failed to construct 'RelatedEvent': The 'relatedTarge t' property does not have a EventTarget type..
17 PASS new RelatedEvent('eventType', { relatedTarget: false }).relatedTarget threw exception TypeError: Failed to construct 'RelatedEvent': The 'relatedTarget' pr operty does not have a EventTarget type..
18 PASS new RelatedEvent('eventType', { relatedTarget: true }).relatedTarget threw exception TypeError: Failed to construct 'RelatedEvent': The 'relatedTarget' pro perty does not have a EventTarget type..
19 PASS new RelatedEvent('eventType', { relatedTarget: '' }).relatedTarget threw ex ception TypeError: Failed to construct 'RelatedEvent': The 'relatedTarget' prope rty does not have a EventTarget type..
20 PASS new RelatedEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget threw exception TypeError: Failed to construct 'RelatedEvent': The 'relatedTarg et' property does not have a EventTarget type..
21 PASS new RelatedEvent('eventType', { relatedTarget: 12345 }).relatedTarget threw exception TypeError: Failed to construct 'RelatedEvent': The 'relatedTarget' pr operty does not have a EventTarget type..
22 PASS new RelatedEvent('eventType', { relatedTarget: 18446744073709551615 }).rela tedTarget threw exception TypeError: Failed to construct 'RelatedEvent': The 're latedTarget' property does not have a EventTarget type..
23 PASS new RelatedEvent('eventType', { relatedTarget: NaN }).relatedTarget threw e xception TypeError: Failed to construct 'RelatedEvent': The 'relatedTarget' prop erty does not have a EventTarget type..
24 PASS new RelatedEvent('eventType', { relatedTarget: {valueOf: function () { retu rn testDiv; } } }).relatedTarget == testDiv threw exception TypeError: Failed to construct 'RelatedEvent': The 'relatedTarget' property does not have a EventTar get type..
25 PASS new RelatedEvent('eventType', { get relatedTarget() { return testDiv; } }). relatedTarget == testDiv is true
26 PASS new RelatedEvent('eventType', { get relatedTarget() { return 123; } }).rela tedTarget threw exception TypeError: Failed to construct 'RelatedEvent': The 're latedTarget' property does not have a EventTarget type..
27 PASS new RelatedEvent('eventType', { get relatedTarget() { throw 'RelatedEvent E rror'; } }) threw exception RelatedEvent Error.
28 PASS new RelatedEvent('eventType', { bubbles: true, cancelable: true, relatedTar get: testDiv }).relatedTarget is testDiv
29 PASS successfullyParsed is true
30
31 TEST COMPLETE
32
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/constructors/related-event-constructor.html ('k') | LayoutTests/fast/events/relatedevent.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698