Chromium Code Reviews| Index: remoting/webapp/js_proto/test_proto.js |
| diff --git a/remoting/webapp/js_proto/test_proto.js b/remoting/webapp/js_proto/test_proto.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9bf21afd541556ad9efbfc543b75942b5cdbe9f7 |
| --- /dev/null |
| +++ b/remoting/webapp/js_proto/test_proto.js |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// This file contains various hacks needed to inform JSCompiler of various |
| +// WebKit- and Chrome-specific properties and methods. It is used only with |
|
kelvinp
2015/02/18 18:41:30
s/WebKit- and Chrome-specific/test specific
garykac
2015/02/19 01:48:45
Done.
|
| +// JSCompiler to verify the type-correctness of our code. |
| + |
| +/** @suppress {duplicate} */ |
| +var browserTest = browserTest || {}; |
| + |
| +/** @suppress {duplicate} */ |
| +var sinon = sinon || {}; |
| + |
| +/** @interface */ |
| +browserTest.TestableClass = function() {}; |
| + |
| +/** @param {*} data */ |
| +browserTest.TestableClass.prototype.run = function(data) {}; |
| + |
| +sinon.spy = function() {}; |
| + |
| +/** @constructor */ |
| +window.DomAutomationControllerMessage = function() { |
| + /** @type {boolean} */ |
| + this.succeeded = false; |
| + /** @type {string} */ |
| + this.error_message = ''; |
| + /** @type {string} */ |
| + this.stack_trace = ''; |
| +}; |
| + |
| +/** @constructor */ |
| +window.DomAutomationController = function() {}; |
| + |
| +/** @param {string} json A stringified DomAutomationControllerMessage. */ |
| +window.DomAutomationController.prototype.send = function(json) {}; |