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

Unified Diff: LayoutTests/http/tests/fetch/PRESUBMIT.py

Issue 806513004: Add a simple fetch API test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/fetch/PRESUBMIT.py
diff --git a/LayoutTests/http/tests/fetch/PRESUBMIT.py b/LayoutTests/http/tests/fetch/PRESUBMIT.py
index b464de7eee173278fec2f674ac412da8c273bb38..b39e02b6fa3a69a9a24ac90b6cd2caa679be83e4 100644
--- a/LayoutTests/http/tests/fetch/PRESUBMIT.py
+++ b/LayoutTests/http/tests/fetch/PRESUBMIT.py
@@ -14,10 +14,11 @@ import re
def missing_files(scripts_path, top_path, worker_path):
for script in os.listdir(scripts_path):
+ if script.startswith('.') or not script.endswith('.js'):
+ continue
basename = re.sub(r'\.js$', '.html', os.path.basename(script))
- window_path = os.path.join(top_path, basename)
- worker_path = os.path.join(worker_path, basename)
- for path in [window_path, worker_path]:
+ for path in [os.path.join(top_path, basename),
+ os.path.join(worker_path, basename)]:
if not os.path.exists(path):
yield path
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698