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

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

Issue 2846993002: [PointerLock] Add null check before dispatching click event (Closed)
Patch Set: rbyers's comments: Use wpt/pointerlock/; Rename test Created 3 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 /* 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 var script = document.createElement('script'); 110 var script = document.createElement('script');
111 script.src = automationPath + relativePath; 111 script.src = automationPath + relativePath;
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 // Per-test automation scripts. 122 // Per-test automation scripts.
122 src = automationPath + pathAndBase + '-automation.js'; 123 src = automationPath + pathAndBase + '-automation.js';
123 } else { 124 } else {
124 return; 125 return;
125 } 126 }
126 var script = document.createElement('script'); 127 var script = document.createElement('script');
127 script.src = src; 128 script.src = src;
128 document.head.appendChild(script); 129 document.head.appendChild(script);
129 } 130 }
130 131
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // another completion callback might generate more results. So, we 261 // another completion callback might generate more results. So, we
261 // don't dump the results immediately. 262 // don't dump the results immediately.
262 setTimeout(done, 0); 263 setTimeout(done, 0);
263 } else { 264 } else {
264 // Parsing the test HTML isn't finished yet. 265 // Parsing the test HTML isn't finished yet.
265 window.addEventListener('load', done); 266 window.addEventListener('load', done);
266 } 267 }
267 }); 268 });
268 269
269 })(); 270 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698