Commit 08a8c723 authored by qyearsley's avatar qyearsley Committed by Commit bot

Rename *-input.js -> *-automation.js in wpt_automation.

BUG=626740

Review-Url: https://codereview.chromium.org/2142283002
Cr-Commit-Position: refs/heads/master@{#405214}
parent f3c4a58f
......@@ -79,7 +79,7 @@
document.head.appendChild(common_script);
}
path = path.replace(/imported\/wpt\/(.*)\.html$/, "imported/wpt_automation/$1-input.js");
path = path.replace(/imported\/wpt\/(.*)\.html$/, "imported/wpt_automation/$1-automation.js");
var input_script = document.createElement('script');
input_script.setAttribute('src', path);
document.head.appendChild(input_script);
......
......@@ -79,7 +79,7 @@
document.head.appendChild(common_script);
}
path = path.replace(/imported\/wpt\/(.*)\.html$/, "imported/wpt_automation/$1-input.js");
path = path.replace(/imported\/wpt\/(.*)\.html$/, "imported/wpt_automation/$1-automation.js");
var input_script = document.createElement('script');
input_script.setAttribute('src', path);
document.head.appendChild(input_script);
......
......@@ -202,9 +202,6 @@ class DepsUpdater(object):
return False
dir_from_wpt = fs.relpath(dirname, self.path_from_webkit_base('LayoutTests', 'imported', 'wpt'))
automation_dir = self.path_from_webkit_base('LayoutTests', 'imported', 'wpt_automation', dir_from_wpt)
# TODO(qyearsley): Update this when all *-input.js are renamed to *-automation.js.
if fs.isfile(fs.join(automation_dir, '%s-input.js' % basename_without_extension)):
return False
if fs.isfile(fs.join(automation_dir, '%s-automation.js' % basename_without_extension)):
return False
return True
......
......@@ -66,5 +66,5 @@ Total: 8 tryjobs
imported_dir + 'wpt_automation/a/x-manual-input.js': '',
imported_dir + 'wpt_automation/a/y-manual-automation.js': '',
})
self.assertTrue(updater.is_manual_test(fs, imported_dir + 'wpt/a', 'x-manual.html'))
self.assertFalse(updater.is_manual_test(fs, imported_dir + 'wpt/a', 'y-manual.html'))
self.assertFalse(updater.is_manual_test(fs, imported_dir + 'wpt/a', 'x-manual.html'))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment