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

Unified Diff: test/debugger/testcfg.py

Issue 2568083002: [inspector] add scope type for modules. (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 side-by-side diff with in-line comments
Download patch
Index: test/debugger/testcfg.py
diff --git a/test/debugger/testcfg.py b/test/debugger/testcfg.py
index bef7544a07cbe1e7a2ebbe035929252424e6172e..a07acbce5bd5f05dc4d20b8b8f6c3b520bffc119 100644
--- a/test/debugger/testcfg.py
+++ b/test/debugger/testcfg.py
@@ -10,6 +10,7 @@ from testrunner.objects import testcase
FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
+MODULE_PATTERN = re.compile(r"^// MODULE$", flags=re.MULTILINE)
class DebuggerTestSuite(testsuite.TestSuite):
@@ -54,6 +55,8 @@ class DebuggerTestSuite(testsuite.TestSuite):
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 ])
+ if MODULE_PATTERN.search(source):
+ files.append("--module")
files.append(os.path.join(self.root, testcase.path + self.suffix()))
flags += files

Powered by Google App Engine
This is Rietveld 408576698