Upstream version 10.38.222.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Tools / GardeningServer / model / ct-failure-tests.html
1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6
7 <link rel="import" href="ct-failure.html">
8
9 <script>
10 (function () {
11
12 module("ct-failure");
13
14 test("basic", 3, function() {
15   var tests = [
16     {
17       failure: new CTFailure('browser_tests', 'FooTest.Bar', {}, 123, 123),
18       expectedGroupName: 'FooTest'
19     },
20     {
21       failure: new CTFailure('webkit_tests', 'fast/text/foo.html', {}, 123, 123),
22       expectedGroupName: 'fast/text'
23     },
24     {
25       failure: new CTFailure('compile', undefined, {}, 123, 123),
26       expectedGroupName: undefined
27     }
28   ];
29   tests.forEach(function(test) {
30     equal(test.failure.reasonGroupName(), test.expectedGroupName);
31   }.bind(this));
32 });
33
34 })();
35 </script>