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

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

Issue 1017613002: Migrate Remoting Webapp Unittests to use QUnit 2.0 syntax. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 9 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/crd/js/desktop_viewport_unittest.js
diff --git a/remoting/webapp/crd/js/desktop_viewport_unittest.js b/remoting/webapp/crd/js/desktop_viewport_unittest.js
index 238c9254bfe49104edaff6465ace3b8c2ac1eebf..e5ceb2456e2025428a981f78c6df07711e370abf 100644
--- a/remoting/webapp/crd/js/desktop_viewport_unittest.js
+++ b/remoting/webapp/crd/js/desktop_viewport_unittest.js
@@ -24,9 +24,9 @@ function dpi(x, y) {
return {x: x, y: y};
}
-module('DesktopViewport');
+QUnit.module('DesktopViewport');
-test('choosePluginSize() handles low-DPI client & host',
+QUnit.test('choosePluginSize() handles low-DPI client & host',
function() {
// 1. Client & host size the same.
var pluginSize = remoting.DesktopViewport.choosePluginSize(
@@ -59,7 +59,7 @@ test('choosePluginSize() handles low-DPI client & host',
QUnit.deepEqual(pluginSize, size(1024 * (600 / 768), 600));
});
-test('choosePluginSize() handles high-DPI client, low-DPI host',
+QUnit.test('choosePluginSize() handles high-DPI client, low-DPI host',
function() {
// 1. Client & host size the same.
var pluginSize = remoting.DesktopViewport.choosePluginSize(
@@ -94,7 +94,7 @@ test('choosePluginSize() handles high-DPI client, low-DPI host',
QUnit.deepEqual(pluginSize, size(1024 * (600 / 768), 600));
});
-test('choosePluginSize() handles low-DPI client, high-DPI host',
+QUnit.test('choosePluginSize() handles low-DPI client, high-DPI host',
function() {
// 1. Client & host size the same.
var pluginSize = remoting.DesktopViewport.choosePluginSize(
@@ -127,7 +127,7 @@ test('choosePluginSize() handles low-DPI client, high-DPI host',
QUnit.deepEqual(pluginSize, size(1024 * (600 / 768), 600));
});
-test('choosePluginSize() handles high-DPI client and host',
+QUnit.test('choosePluginSize() handles high-DPI client and host',
function() {
// 1. Client & host size the same.
var pluginSize = remoting.DesktopViewport.choosePluginSize(
@@ -162,7 +162,7 @@ test('choosePluginSize() handles high-DPI client and host',
QUnit.deepEqual(pluginSize, size(1024 / 2.0, 768 / 2.0));
});
-test('choosePluginSize() handles high-DPI client, 150% DPI host',
+QUnit.test('choosePluginSize() handles high-DPI client, 150% DPI host',
function() {
// 1. Client & host size the same.
var pluginSize = remoting.DesktopViewport.choosePluginSize(
@@ -197,7 +197,7 @@ test('choosePluginSize() handles high-DPI client, 150% DPI host',
QUnit.deepEqual(pluginSize, size(1024 / 2.0, 768 / 2.0));
});
-test('choosePluginSize() handles high-DPI client, 125% DPI host',
+QUnit.test('choosePluginSize() handles high-DPI client, 125% DPI host',
function() {
// 1. Client & host size the same.
var pluginSize = remoting.DesktopViewport.choosePluginSize(
@@ -232,7 +232,7 @@ test('choosePluginSize() handles high-DPI client, 125% DPI host',
QUnit.deepEqual(pluginSize, size(1024 * (600 / 768), 600));
});
-test('choosePluginSize() with shrink-to-fit disabled',
+QUnit.test('choosePluginSize() with shrink-to-fit disabled',
function() {
// 1. Client & host size the same.
var pluginSize = remoting.DesktopViewport.choosePluginSize(
@@ -275,7 +275,7 @@ test('choosePluginSize() with shrink-to-fit disabled',
QUnit.deepEqual(pluginSize, size(512, (512 / 1024) * 600));
});
-test('choosePluginSize() full-screen multi-monitor optimization',
+QUnit.test('choosePluginSize() full-screen multi-monitor optimization',
function() {
// Each test has a host sized to approximate two or more monitors.

Powered by Google App Engine
This is Rietveld 408576698