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

Unified Diff: test/debugger/testcfg.py

Issue 2487673002: [debugger] Basic scope functionality and exception events in wrapper (Closed)
Patch Set: Formatting Created 4 years, 1 month 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 | « test/debugger/test-api.js ('k') | test/mjsunit/debug-allscopes-on-debugger.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/testcfg.py
diff --git a/test/debugger/testcfg.py b/test/debugger/testcfg.py
index 8606423e588e6bfab0c5f90dfd9f6541f77ea7ad..bef7544a07cbe1e7a2ebbe035929252424e6172e 100644
--- a/test/debugger/testcfg.py
+++ b/test/debugger/testcfg.py
@@ -8,6 +8,7 @@ import re
from testrunner.local import testsuite
from testrunner.objects import testcase
+FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
class DebuggerTestSuite(testsuite.TestSuite):
@@ -38,9 +39,21 @@ class DebuggerTestSuite(testsuite.TestSuite):
for match in flags_match:
flags += match.strip().split()
+ files_list = [] # List of file names to append to command arguments.
+ files_match = FILES_PATTERN.search(source);
+ # Accept several lines of 'Files:'.
+ while True:
+ if files_match:
+ files_list += files_match.group(1).strip().split()
+ files_match = FILES_PATTERN.search(source, files_match.end())
+ else:
+ break
+
files = []
files.append(os.path.normpath(os.path.join(self.root, "..", "mjsunit", "mjsunit.js")))
files.append(os.path.join(self.root, "test-api.js"))
+ files.extend([ os.path.normpath(os.path.join(self.root, '..', '..', f))
+ for f in files_list ])
files.append(os.path.join(self.root, testcase.path + self.suffix()))
flags += files
« no previous file with comments | « test/debugger/test-api.js ('k') | test/mjsunit/debug-allscopes-on-debugger.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698