| Index: chrome/test/data/extensions/api_test/systeminfo/display/test_display_api.js
|
| diff --git a/chrome/test/data/extensions/api_test/systeminfo/display/test_display_api.js b/chrome/test/data/extensions/api_test/systeminfo/display/test_display_api.js
|
| index c89d36704536f65b3dffdd9f210eecd7d149fcd3..8b40ffef7cfca46de4ef42f5ae59fc4a8ad34a64 100644
|
| --- a/chrome/test/data/extensions/api_test/systeminfo/display/test_display_api.js
|
| +++ b/chrome/test/data/extensions/api_test/systeminfo/display/test_display_api.js
|
| @@ -13,17 +13,34 @@ chrome.test.runTests([
|
| chrome.test.assertEq(2, result.length);
|
| for (var i = 0; i < result.length; i++) {
|
| var info = result[i];
|
| - chrome.test.assertEq('DISPLAY', info.id);
|
| - chrome.test.assertEq('DISPLAY NAME', info.name);
|
| + chrome.test.assertEq('' + i, info.id);
|
| + chrome.test.assertEq('DISPLAY NAME FOR ' + i, info.name);
|
| chrome.test.assertEq(i == 0 ? true : false, info.isPrimary);
|
| chrome.test.assertEq(i == 0 ? true : false, info.isInternal);
|
| + if (i == 1) {
|
| + chrome.test.assertEq('0', info.mirroringSourceId);
|
| + } else {
|
| + chrome.test.assertEq('', info.mirroringSourceId);
|
| + }
|
| chrome.test.assertEq(true, info.isEnabled);
|
| + chrome.test.assertEq(90 * i, info.rotation);
|
| chrome.test.assertEq(96.0, info.dpiX);
|
| chrome.test.assertEq(96.0, info.dpiY);
|
| chrome.test.assertEq(0, info.bounds.left);
|
| chrome.test.assertEq(0, info.bounds.top);
|
| chrome.test.assertEq(1280, info.bounds.width);
|
| chrome.test.assertEq(720, info.bounds.height);
|
| + if (i == 0) {
|
| + chrome.test.assertEq(20, info.visibleArea.left);
|
| + chrome.test.assertEq(40, info.visibleArea.top);
|
| + chrome.test.assertEq(1280, info.visibleArea.width);
|
| + chrome.test.assertEq(720, info.visibleArea.height);
|
| + } else {
|
| + chrome.test.assertEq(0, info.visibleArea.left);
|
| + chrome.test.assertEq(0, info.visibleArea.top);
|
| + chrome.test.assertEq(0, info.visibleArea.width);
|
| + chrome.test.assertEq(0, info.visibleArea.height);
|
| + }
|
| chrome.test.assertEq(0, info.workArea.left);
|
| chrome.test.assertEq(0, info.workArea.top);
|
| chrome.test.assertEq(960, info.workArea.width);
|
|
|