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

Unified Diff: remoting/webapp/unittests/desktop_viewport_unittest.js

Issue 959963002: [Chromoting] Enable jscompile for webapp unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename sinon.$testStub -> sinon.TestStub 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/unittests/desktop_viewport_unittest.js
diff --git a/remoting/webapp/unittests/desktop_viewport_unittest.js b/remoting/webapp/unittests/desktop_viewport_unittest.js
index 054bf57ed134201164f00c99a5e2d5ec0ae27c70..238c9254bfe49104edaff6465ace3b8c2ac1eebf 100644
--- a/remoting/webapp/unittests/desktop_viewport_unittest.js
+++ b/remoting/webapp/unittests/desktop_viewport_unittest.js
@@ -6,16 +6,26 @@
'use strict';
-module('DesktopViewport');
-
+/**
+ * @param {number} width
+ * @param {number} height
+ * @return {{width:number, height:number}}
+ */
function size(width, height) {
return {width: width, height: height};
}
+/**
+ * @param {number} x
+ * @param {number} y
+ * @return {{x:number, y:number}}
+ */
function dpi(x, y) {
return {x: x, y: y};
}
+module('DesktopViewport');
+
test('choosePluginSize() handles low-DPI client & host',
function() {
// 1. Client & host size the same.

Powered by Google App Engine
This is Rietveld 408576698