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.
7 <link rel="import" href="ct-failure.html">
14 test("basic", 3, function() {
17 failure: new CTFailure('browser_tests', 'FooTest.Bar', {}, 123, 123),
18 expectedGroupName: 'FooTest'
21 failure: new CTFailure('webkit_tests', 'fast/text/foo.html', {}, 123, 123),
22 expectedGroupName: 'fast/text'
25 failure: new CTFailure('compile', undefined, {}, 123, 123),
26 expectedGroupName: undefined
29 tests.forEach(function(test) {
30 equal(test.failure.reasonGroupName(), test.expectedGroupName);