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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py

Issue 2795793003: Make run-webkit-tests work with virtual parent LayoutTest directories (Closed)
Patch Set: fix test for win_chromium_rel_ng Created 3 years, 8 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
index 73616d9f98d9fd018b8effd5e6da73b6a49e7b7b..d27d3f15d33f44b9cea397bb901693b6ea04b68f 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
@@ -446,9 +446,15 @@ class PortTest(unittest.TestCase):
self.assertIn('passes/virtual_passes/test-virtual-passes.html', tests)
self.assertNotIn('virtual/virtual_passes/passes/text.html', tests)
+ tests = port.tests(['virtual/virtual_passes/'])
+ self.assertIn('virtual/virtual_passes/passes/test-virtual-passes.html', tests)
+ self.assertIn('virtual/virtual_passes/passes_two/test-virtual-passes.html', tests)
+
tests = port.tests(['virtual/virtual_passes/passes'])
self.assertNotIn('passes/text.html', tests)
self.assertIn('virtual/virtual_passes/passes/test-virtual-passes.html', tests)
+ self.assertNotIn('virtual/virtual_passes/passes_two/test-virtual-passes.html', tests)
+
self.assertNotIn('passes/test-virtual-passes.html', tests)
self.assertNotIn('virtual/virtual_passes/passes/test-virtual-virtual/passes.html', tests)
self.assertNotIn('virtual/virtual_passes/passes/virtual_passes/passes/test-virtual-passes.html', tests)

Powered by Google App Engine
This is Rietveld 408576698