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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/bindings/bindings_path_finder.py

Issue 2553503002: NOT FOR LANDING: How do we add unit tests for bindings? (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # Source/ path is needed both to find input IDL files, and to import other
6 # Python modules.
7
8 """Tiny utility to find various paths, relevant for running bindings
9 tests.
10 """
11
12 import os
13
14
15 def get_blink_source():
16 return os.path.normpath(
17 os.path.join(
18 os.path.dirname(__file__), os.pardir, os.pardir, os.pardir,
19 os.pardir, 'Source'))
20
21
22 def get_bindings_scripts():
23 return os.path.join(get_blink_source(), 'bindings', 'scripts')
24
25
26 def get_test_input():
27 return os.path.join(get_blink_source(), 'bindings', 'tests', 'idls')
28
29
30 def get_test_results():
31 return os.path.join(get_blink_source(), 'bindings', 'tests', 'results')
OLDNEW
« no previous file with comments | « third_party/WebKit/Tools/Scripts/test-webkitpy ('k') | third_party/WebKit/Tools/Scripts/webkitpy/bindings/bindings_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698