Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Unified Diff: remoting/webapp/js_proto/test_proto.js

Issue 927373005: [Chromoting] Enable jscompile for browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {};

Powered by Google App Engine
This is Rietveld 408576698