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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py

Issue 2423853002: bluetooth: Add script to generate tests based on templates (Closed)
Patch Set: Remove replace loop Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/bluetooth/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py
diff --git a/third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py b/third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py
new file mode 100644
index 0000000000000000000000000000000000000000..d0abf4aab485a407f3739b1e8b0e5f363e4a142e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py
@@ -0,0 +1,25 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+"""Chromium presubmit script for Web Bluetooth layout tests.
+
+See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts.
+"""
+
+
+def CheckGeneratedFiles(input_api, output_api):
+ test_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
+ 'generate_test.py')
+ cmd_name = 'generate_test'
+ cmd = [input_api.python_executable, test_path]
+
+ test_cmd = input_api.Command(
+ name=cmd_name, cmd=cmd, kwargs={}, message=output_api.PresubmitError)
+ if input_api.verbose:
+ print('Running ' + cmd_name)
+
+ return input_api.RunTests([test_cmd])
+
+
+def CheckChangeOnUpload(input_api, output_api):
+ return CheckGeneratedFiles(input_api, output_api)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/bluetooth/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698