OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright 2013 Google Inc. All Rights Reserved. | |
3 | |
4 Licensed under the Apache License, Version 2.0 (the "License"); | |
5 you may not use this file except in compliance with the License. | |
6 You may obtain a copy of the License at | |
7 | |
8 http://www.apache.org/licenses/LICENSE-2.0 | |
9 | |
10 Unless required by applicable law or agreed to in writing, software | |
11 distributed under the License is distributed on an "AS IS" BASIS, | |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 See the License for the specific language governing permissions and | |
14 limitations under the License. | |
15 --> | |
16 <!DOCTYPE html> | |
17 <script> | |
18 var expected_failures = [ | |
19 { | |
20 browser_configurations: [{ chrome: true, version: '28' }], | |
21 tests: ['Failing on Chrome 28'], | |
22 message: 'This test is deliberately broken on Chrome 28.', | |
23 }, { | |
24 browser_configurations: [{ chrome: true }], | |
25 tests: ['Chrome for regexing'], | |
26 message: 'This test is deliberately broken on all Chrome versions.', | |
27 }, { | |
28 browser_configurations: [{ firefox: true }], | |
29 tests: ['Failing on all Firefox'], | |
30 message: 'This test is deliberately broken on all Firefox versions.', | |
31 } | |
32 ]; | |
33 </script> | |
34 <script src="../bootstrap.js"></script> | |
35 <script> | |
36 "use strict"; | |
37 | |
38 test(function() { | |
39 assert_false(/Firefox/.test(navigator.userAgent)); | |
40 }, 'Failing on all Firefox'); | |
41 | |
42 test(function() { | |
43 assert_false(/Chrome\/28/.test(navigator.userAgent)); | |
44 }, 'Failing on Chrome 28'); | |
45 | |
46 test(function() { | |
47 assert_false(/Chrome/.test(navigator.userAgent)); | |
48 }, 'Failing on all Chrome for regexing 1'); | |
49 | |
50 test(function() { | |
51 assert_false(/Chrome/.test(navigator.userAgent)); | |
52 }, 'Failing on all Chrome for regexing 2'); | |
53 | |
54 </script> | |
OLD | NEW |