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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/resources/testharnessreport.js

Issue 2056333002: Add the rest of web platform pointerevent tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip a few more tests Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/resources/testharnessreport.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharnessreport.js b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharnessreport.js
index 64c08a922e7b4a1fa004960fd22c6aeeb80ac7b3..0dba6f206509b4ec011452b8b5f3a6cfddc03b87 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharnessreport.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharnessreport.js
@@ -66,9 +66,19 @@
return !!document.querySelector('script[src*="/resources/testharness"]');
}
+
function injectSyntheticInput() {
var path = window.location.pathname;
if (path.match(/imported\/wpt\/.*\.html$/)) {
+ // Set a global variable for the address of automated input script if they need to use it.
+ var automated_input_scripts_folder = path.replace(/imported\/wpt\/(.*)\.html$/, 'imported/wpt_automation');
+
+ importAutomationScript = function(relativePath) {
+ var common_script = document.createElement('script');
+ common_script.setAttribute('src', automated_input_scripts_folder + relativePath);
+ document.head.appendChild(common_script);
+ }
+
path = path.replace(/imported\/wpt\/(.*)\.html$/, "imported/wpt_automation/$1-input.js");
var input_script = document.createElement('script');
input_script.setAttribute('src', path);

Powered by Google App Engine
This is Rietveld 408576698