ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / remoting / webapp / js_proto / qunit_proto.js
blobdd5745f90e67c25555a27171bc8a1875ed8de0d0
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 // QUnit-specific properties and methods. It is used only with JSCompiler to
7 // verify the type-correctness of our code.
10 /** @type {Object} */
11 var QUnit = QUnit || {};
13 /** @constructor */
14 QUnit.Test = function() {};
16 /** @type {QUnit.Clock} */
17 QUnit.Test.prototype.clock = new QUnit.Clock();
19 /** @constructor */
20 QUnit.Clock = function() {};
22 /** @param {number} ticks */
23 QUnit.Clock.prototype.tick = function(ticks) {};
26 /**
27 * @param {string} desc
28 * @param {Function} f
30 QUnit.asyncTest = function(desc, f) {};
32 /**
33 * @param {*} a
34 * @param {*} b
36 QUnit.deepEqual = function(a, b) {};
38 /**
39 * @param {*} a
40 * @param {*} b
42 QUnit.equal = function(a, b) {};
44 /**
45 * @param {*} a
47 QUnit.expect = function(a) {};
49 /**
50 * @param {string} desc
51 * @param {Object=} dict
53 QUnit.module = function(desc, dict) {};
55 /**
56 * @param {*} a
57 * @param {*} b
58 * @param {string} desc
60 QUnit.notEqual = function(a, b, desc) {};
62 /**
63 * @param {boolean} cond
64 * @param {string=} desc
65 * @return {boolean}
67 QUnit.ok = function(cond, desc) {};
69 QUnit.start = function() {};
71 /**
72 * @param {string} desc
73 * @param {Function} f
75 QUnit.test = function(desc, f) {};
77 /** @param {Function} f */
78 QUnit.testStart = function(f) {};
81 var deepEqual = QUnit.deepEqual;
82 var equal = QUnit.equal;
83 var expect = QUnit.expect;
84 var module = QUnit.module;
85 var notEqual = QUnit.notEqual;
86 var ok = QUnit.ok;
87 var test = QUnit.test;