+2010-05-10 Dirk Pranke <dpranke@chromium.org>
+
+ Reviewed by Eric Seidel.
+
+ new-run-webkit-tests: fix a path-handling bug that was breaking the
+ dryrun ports on windows, and add a comment about why we don't run
+ the chromium dryrun tests by default on every port.
+
+ https://bugs.webkit.org/show_bug.cgi?id=38796
+
+ * Scripts/webkitpy/layout_tests/port/dryrun.py:
+ * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
+
2010-05-11 Mark Rowe <mrowe@apple.com>
Reviewed by Darin Adler.
from __future__ import with_statement
+import sys
+
import base
import factory
test = uri
if uri.startswith("file:///"):
- test = test.replace('file://', '')
+ if sys.platform == 'win32':
+ test = test.replace('file:///', '')
+ test = test.replace('/', '\\')
+ else:
+ test = test.replace('file://', '')
return test
elif uri.startswith("http://127.0.0.1:8880/"):
# websocket tests
class DryrunTest(unittest.TestCase):
def test_basics(self):
- # FIXME: This test depends on being able to detect the correct
- # port from the environment. Thus it can't work for Gtk/Qt without
- # modification or more information being passed into test-webkitpy.
- if sys.platform not in "mac":
+ # FIXME: it's hard to know which platforms are safe to test; the
+ # chromium platforms require a chromium checkout, and the mac platform
+ # requires fcntl, so it can't be tested on win32, etc. There is
+ # probably a better way of handling this.
+ if sys.platform != "mac":
return
self.assertTrue(passing_run(['--platform', 'dryrun',
'fast/html']))
- #self.assertTrue(passing_run(['--platform', 'dryrun-mac',
- # 'fast/html']))
- #self.assertTrue(passing_run(['--platform', 'dryrun-chromium-mac',
- # 'fast/html']))
- #self.assertTrue(passing_run(['--platform', 'dryrun-chromium-win',
- # 'fast/html']))
- #self.assertTrue(passing_run(['--platform', 'dryrun-chromium-linux',
- # 'fast/html']))
+ self.assertTrue(passing_run(['--platform', 'dryrun-mac',
+ 'fast/html']))
+
if __name__ == '__main__':
unittest.main()