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

Unified Diff: LayoutTests/fast/forms/page-popup/page-popup-adjust-rect.html

Issue 243173004: Make window.screen property non replaceable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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: LayoutTests/fast/forms/page-popup/page-popup-adjust-rect.html
diff --git a/LayoutTests/fast/forms/page-popup/page-popup-adjust-rect.html b/LayoutTests/fast/forms/page-popup/page-popup-adjust-rect.html
index 2be796ec5886b262deb465a17518fc61bd775ec1..29134653950eff2b144d58af449e5aa11274deb4 100644
--- a/LayoutTests/fast/forms/page-popup/page-popup-adjust-rect.html
+++ b/LayoutTests/fast/forms/page-popup/page-popup-adjust-rect.html
@@ -27,14 +27,16 @@ function makeRect(x, y, width, height) {
}
function test() {
- popupWindow.screen = {
- width: 80,
- height: 60,
- availLeft: 0,
- availTop: 0,
- availWidth: 80,
- availHeight: 60,
- };
+ Object.defineProperty(popupWindow, 'screen', {
+ value: {
+ width: 80,
+ height: 60,
+ availLeft: 0,
+ availTop: 0,
+ availWidth: 80,
+ availHeight: 60
+ }
+ });
debug("Move anchor element along the vertical axis.");

Powered by Google App Engine
This is Rietveld 408576698