diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-18 17:56:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-18 17:56:11 -0700 |
commit | ae64d8fef1a7eca5a36da12a7c6ade70f127cf3e (patch) | |
tree | 57e63095961db16a125f0c9f48d1c3b54104dc1d /tests/runner.py | |
parent | 1cc24592558669e1816b7458eb48e7202f50deb9 (diff) | |
parent | a63686c1bbf93288248ee26a9beec819e319a3b9 (diff) |
Merge pull request #1535 from juj/fix_source_map_windows
Fix source_map on windows.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index bdbd2676..318946e6 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -275,6 +275,18 @@ process(sys.argv[1]) print "Output: " + output[0] return output[0] + # Tests that the given two paths are identical, modulo path delimiters. E.g. "C:/foo" is equal to "C:\foo". + def assertPathsIdentical(self, path1, path2): + path1 = path1.replace('\\', '/') + path2 = path2.replace('\\', '/') + return self.assertIdentical(path1, path2) + + # Tests that the given two multiline text content are identical, modulo line ending differences (\r\n on Windows, \n on Unix). + def assertTextDataIdentical(self, text1, text2): + text1 = text1.replace('\r\n', '\n') + text2 = text2.replace('\r\n', '\n') + return self.assertIdentical(text1, text2) + def assertIdentical(self, values, y): if type(values) not in [list, tuple]: values = [values] for x in values: |