1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file contains various hacks needed to inform JSCompiler of various
6 // test-specific properties and methods. It is used only with JSCompiler to
7 // verify the type-correctness of our code.
9 /** @suppress {duplicate} */
10 var browserTest
= browserTest
|| {};
13 browserTest
.TestableClass = function() {};
15 /** @param {*} data */
16 browserTest
.TestableClass
.prototype.run = function(data
) {};
20 window
.DomAutomationControllerMessage = function() {
21 /** @type {boolean} */
22 this.succeeded
= false;
24 this.error_message
= '';
26 this.stack_trace
= '';
30 window
.DomAutomationController = function() {};
32 /** @param {string} json A stringified DomAutomationControllerMessage. */
33 window
.DomAutomationController
.prototype.send = function(json
) {};