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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/resources/shadow-dom-utils.js

Issue 1993513002: Move the shadow-dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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 // Copyright 2012 Google Inc. All Rights Reserved. 1 // Copyright 2012 Google Inc. All Rights Reserved.
2 2
3 /* 3 /*
4 Distributed under both the W3C Test Suite License [1] and the W3C 4 Distributed under both the W3C Test Suite License [1] and the W3C
5 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the 5 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
6 policies and contribution forms [3]. 6 policies and contribution forms [3].
7 7
8 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license 8 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
9 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license 9 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
10 [3] http://www.w3.org/2004/10/27-testcases 10 [3] http://www.w3.org/2004/10/27-testcases
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 //FIXME This call of initKeyboardEvent works for WebKit-only. 147 //FIXME This call of initKeyboardEvent works for WebKit-only.
148 //See https://bugs.webkit.org/show_bug.cgi?id=16735 148 //See https://bugs.webkit.org/show_bug.cgi?id=16735
149 // and https://bugs.webkit.org/show_bug.cgi?id=13368. Add check for browser here 149 // and https://bugs.webkit.org/show_bug.cgi?id=13368. Add check for browser here
150 function fireKeyboardEvent(doc, element, key) { 150 function fireKeyboardEvent(doc, element, key) {
151 var event = doc.createEvent('KeyboardEvent'); 151 var event = doc.createEvent('KeyboardEvent');
152 event.initKeyboardEvent("keydown", true, true, doc.defaultView, key, 0, fals e, false, false, false); 152 event.initKeyboardEvent("keydown", true, true, doc.defaultView, key, 0, fals e, false, false, false);
153 element.dispatchEvent(event); 153 element.dispatchEvent(event);
154 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698