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

Side by Side Diff: third_party/WebKit/LayoutTests/resources/testharnessreport.js

Issue 2919603002: [WPT] Add automated manual test for InputEvent typing (Closed)
Patch Set: foolip's comments: Fix nits Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt_automation/input-events/inputevent_common_input.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * THIS FILE INTENTIONALLY LEFT BLANK 2 * THIS FILE INTENTIONALLY LEFT BLANK
3 * 3 *
4 * More specifically, this file is intended for vendors to implement 4 * More specifically, this file is intended for vendors to implement
5 * code needed to integrate testharness.js tests with their own test systems. 5 * code needed to integrate testharness.js tests with their own test systems.
6 * 6 *
7 * Typically such integration will attach callbacks when each test is 7 * Typically such integration will attach callbacks when each test is
8 * has run, using add_result_callback(callback(test)), or when the whole test fi le has 8 * has run, using add_result_callback(callback(test)), or when the whole test fi le has
9 * completed, using add_completion_callback(callback(tests, harness_status)). 9 * completed, using add_completion_callback(callback(tests, harness_status)).
10 * 10 *
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 document.head.appendChild(script); 112 document.head.appendChild(script);
113 } 113 }
114 114
115 var src; 115 var src;
116 if (pathAndBase.startsWith('/fullscreen/')) { 116 if (pathAndBase.startsWith('/fullscreen/')) {
117 // Fullscreen tests all use the same automation script. 117 // Fullscreen tests all use the same automation script.
118 src = automationPath + '/fullscreen/auto-click.js'; 118 src = automationPath + '/fullscreen/auto-click.js';
119 } else if (pathAndBase.startsWith('/pointerevents/') 119 } else if (pathAndBase.startsWith('/pointerevents/')
120 || pathAndBase.startsWith('/uievents/') 120 || pathAndBase.startsWith('/uievents/')
121 || pathAndBase.startsWith('/pointerlock/') 121 || pathAndBase.startsWith('/pointerlock/')
122 || pathAndBase.startsWith('/html/')) { 122 || pathAndBase.startsWith('/html/')
123 || pathAndBase.startsWith('/input-events/')) {
123 // Per-test automation scripts. 124 // Per-test automation scripts.
124 src = automationPath + pathAndBase + '-automation.js'; 125 src = automationPath + pathAndBase + '-automation.js';
125 } else { 126 } else {
126 return; 127 return;
127 } 128 }
128 var script = document.createElement('script'); 129 var script = document.createElement('script');
129 script.src = src; 130 script.src = src;
130 document.head.appendChild(script); 131 document.head.appendChild(script);
131 } 132 }
132 133
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // another completion callback might generate more results. So, we 263 // another completion callback might generate more results. So, we
263 // don't dump the results immediately. 264 // don't dump the results immediately.
264 setTimeout(done, 0); 265 setTimeout(done, 0);
265 } else { 266 } else {
266 // Parsing the test HTML isn't finished yet. 267 // Parsing the test HTML isn't finished yet.
267 window.addEventListener('load', done); 268 window.addEventListener('load', done);
268 } 269 }
269 }); 270 });
270 271
271 })(); 272 })();
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt_automation/input-events/inputevent_common_input.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698