summaryrefslogtreecommitdiffstats
path: root/Tools/Scripts/webkitpy/common/net/testoutput_unittest.py
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-24 11:24:40 +0100
committerBen Murdoch <benm@google.com>2011-06-02 09:53:15 +0100
commit81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch)
tree7a9e5ed86ff429fd347a25153107221543909b19 /Tools/Scripts/webkitpy/common/net/testoutput_unittest.py
parent94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff)
downloadexternal_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip
external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz
external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Tools/Scripts/webkitpy/common/net/testoutput_unittest.py')
-rw-r--r--Tools/Scripts/webkitpy/common/net/testoutput_unittest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/Scripts/webkitpy/common/net/testoutput_unittest.py b/Tools/Scripts/webkitpy/common/net/testoutput_unittest.py
index ad38ca6..6b820c6 100644
--- a/Tools/Scripts/webkitpy/common/net/testoutput_unittest.py
+++ b/Tools/Scripts/webkitpy/common/net/testoutput_unittest.py
@@ -22,7 +22,9 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+import os
import re
+import sys
import testoutput
import unittest
@@ -60,10 +62,19 @@ class FakeTestOutput(testoutput.TestOutput):
class TestOutputTest(unittest.TestCase):
def _check_name(self, filename, expected_test_name):
+ # FIXME: should consider using MockFileSystem here so as to not
+ # have to worry about platform-specific path separators.
+ if sys.platform == 'win32':
+ filename = filename.replace('/', os.path.sep)
+ expected_test_name = expected_test_name.replace('/', os.path.sep)
r = testoutput.TextTestOutput(None, FakeFile(filename))
self.assertEquals(expected_test_name, r.name())
def _check_platform(self, filename, expected_platform):
+ # FIXME: should consider using MockFileSystem here so as to not
+ # have to worry about platform-specific path separators.
+ if sys.platform == 'win32':
+ filename = filename.replace('/', os.path.sep)
r = testoutput.TextTestOutput(None, FakeFile(filename))
self.assertEquals(expected_platform, r.platform())