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

Unified Diff: tools/telemetry/telemetry/page_unittest.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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
« no previous file with comments | « tools/telemetry/telemetry/page_test.py ('k') | tools/telemetry/telemetry/perf_tests_helper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page_unittest.py
diff --git a/tools/telemetry/telemetry/page_unittest.py b/tools/telemetry/telemetry/page_unittest.py
deleted file mode 100644
index 748517301e94b93f90a7ac4709241173a3842dcb..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/page_unittest.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-import unittest
-
-from telemetry import page
-
-class TestPage(unittest.TestCase):
- def testGetUrlBaseDirAndFileForAbsolutePath(self):
- apage = page.Page('file:///somedir/otherdir/file.html',
- None, # In this test, we don't need a page set.
- base_dir='basedir')
- dirname, filename = apage.url_base_dir_and_file
- self.assertEqual(dirname, 'basedir/somedir/otherdir')
- self.assertEqual(filename, 'file.html')
-
- def testGetUrlBaseDirAndFileForRelativePath(self):
- apage = page.Page('file:///../../otherdir/file.html',
- None, # In this test, we don't need a page set.
- base_dir='basedir')
- dirname, filename = apage.url_base_dir_and_file
- self.assertEqual(dirname, 'basedir/../../otherdir')
- self.assertEqual(filename, 'file.html')
-
- def testGetUrlBaseDirAndFileForUrlBaseDir(self):
- apage = page.Page('file:///../../somedir/otherdir/file.html',
- None, # In this test, we don't need a page set.
- base_dir='basedir')
- setattr(apage, 'url_base_dir', 'file:///../../somedir/')
- dirname, filename = apage.url_base_dir_and_file
- self.assertEqual(dirname, 'basedir/../../somedir/')
- self.assertEqual(filename, 'otherdir/file.html')
-
- def testDisplayUrlForHttp(self):
- self.assertEquals(page.Page('http://www.foo.com/', None).display_url,
- 'www.foo.com/')
-
- def testDisplayUrlForFile(self):
- self.assertEquals(
- page.Page('file:///../../otherdir/file.html', None).display_url,
- 'file.html')
« no previous file with comments | « tools/telemetry/telemetry/page_test.py ('k') | tools/telemetry/telemetry/perf_tests_helper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698