Index: chrome/test/data/pdf/test_util.js |
diff --git a/chrome/test/data/pdf/test_util.js b/chrome/test/data/pdf/test_util.js |
index 8ea2a81cd9fd3ec609836f67690a9ee49ec1dea3..bf2093ae2d5d9706dbeee3c37c81e233583d4c14 100644 |
--- a/chrome/test/data/pdf/test_util.js |
+++ b/chrome/test/data/pdf/test_util.js |
@@ -12,6 +12,11 @@ function MockWindow(width, height, sizer) { |
if (e == 'resize') |
this.resizeCallback = f; |
}; |
+ this.setSize = function(width, height) { |
+ this.innerWidth = width; |
+ this.innerHeight = height; |
+ this.resizeCallback(); |
+ } |
this.scrollTo = function(x, y) { |
if (sizer) { |
x = Math.min(x, parseInt(sizer.style.width) - width); |