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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed.html

Issue 2273143002: Update web-platform-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update baseline Created 4 years, 3 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Shadow DOM: Event composed</title> 2 <title>Shadow DOM: Event composed</title>
3 <meta name="author" title="Hayato Ito" href="mailto:hayato@google.com"> 3 <meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
4 <script src="../resources/testharness.js"></script> 4 <script src="/resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <script src="resources/shadow-dom.js"></script> 6 <script src="resources/shadow-dom.js"></script>
7 <div id=host> 7 <div id=host>
8 <template id=shadowRoot data-mode=open> 8 <template id=shadowRoot data-mode=open>
9 <div id=target></div> 9 <div id=target></div>
10 </template> 10 </template>
11 </div> 11 </div>
12 <script> 12 <script>
13 test(() => { 13 test(() => {
14 const e = new Event('test'); 14 const e = new Event('test');
15 assert_equals(e.composed, false); 15 assert_equals(e.composed, false);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 ['shadowRoot', 'target', null, expectedPath], 72 ['shadowRoot', 'target', null, expectedPath],
73 ['host', 'host', null, expectedPath]]); 73 ['host', 'host', null, expectedPath]]);
74 } 74 }
75 75
76 test(() => { 76 test(() => {
77 assertUAComposed('click', (target) => { target.click(); }); 77 assertUAComposed('click', (target) => { target.click(); });
78 }, 'A UA click event should not be scoped'); 78 }, 'A UA click event should not be scoped');
79 79
80 // TODO(hayato): Test other UIEvents. 80 // TODO(hayato): Test other UIEvents.
81 </script> 81 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698