| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 import unittest | 4 import unittest |
| 5 | 5 |
| 6 import test_expectations | 6 import test_expectations |
| 7 | 7 |
| 8 from telemetry.page import page as page_module | 8 from telemetry.page import page as page_module |
| 9 from telemetry.story import story_set | 9 from telemetry.story import story_set |
| 10 | 10 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 page = page_module.Page('file://conformance\\attribs\\page14.html', ps) | 215 page = page_module.Page('file://conformance\\attribs\\page14.html', ps) |
| 216 self.assertExpectationEquals('pass', page) | 216 self.assertExpectationEquals('pass', page) |
| 217 self.assertExpectationEquals('fail', page, StubPlatform('win')) | 217 self.assertExpectationEquals('fail', page, StubPlatform('win')) |
| 218 | 218 |
| 219 def testExplicitPathsHavePrecedenceOverWildcards(self): | 219 def testExplicitPathsHavePrecedenceOverWildcards(self): |
| 220 ps = story_set.StorySet() | 220 ps = story_set.StorySet() |
| 221 page = page_module.Page('http://test.com/conformance/glsl/page00.html', ps) | 221 page = page_module.Page('http://test.com/conformance/glsl/page00.html', ps) |
| 222 self.assertExpectationEquals('fail', page) | 222 self.assertExpectationEquals('fail', page) |
| 223 page = page_module.Page('http://test.com/conformance/glsl/page15.html', ps) | 223 page = page_module.Page('http://test.com/conformance/glsl/page15.html', ps) |
| 224 self.assertExpectationEquals('skip', page) | 224 self.assertExpectationEquals('skip', page) |
| 225 |
| 226 def testQueryArgsAreStrippedFromFileURLs(self): |
| 227 ps = story_set.StorySet() |
| 228 page = page_module.Page( |
| 229 'file://conformance/glsl/page15.html?webglVersion=2', ps) |
| 230 self.assertExpectationEquals('skip', page) |
| OLD | NEW |