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

Unified Diff: chrome/test/data/extensions/platform_apps/window_api/test.js

Issue 2709103004: [Content] Allow V8ValueConverter to convert -0 to an integer (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | content/child/v8_value_converter_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/window_api/test.js
diff --git a/chrome/test/data/extensions/platform_apps/window_api/test.js b/chrome/test/data/extensions/platform_apps/window_api/test.js
index 8b73af8477319b18bd42408e65e518da41bfcbf6..b3a90279fdffc307cca6533ec852bed5d0825f79 100644
--- a/chrome/test/data/extensions/platform_apps/window_api/test.js
+++ b/chrome/test/data/extensions/platform_apps/window_api/test.js
@@ -399,6 +399,25 @@ function testInitialBounds() {
}));
},
+ // Regression for crbug.com/694248.
+ function testInnerBoundsNegativeZero() {
+ var innerBounds = {
+ left: -0,
+ top: 100,
+ width: 400,
+ height: 300,
+ };
+ chrome.app.window.create('test.html', {
+ innerBounds: innerBounds
+ }, callbackPass(function(win) {
+ chrome.test.assertTrue(win != null);
+ assertBoundsEq(innerBounds, win.innerBounds);
+ assertBoundsConsistent(win);
+ assertConstraintsUnspecified(win);
+ win.close();
+ }));
+ },
+
function testOuterBoundsOnly() {
var outerBounds = {
left: 150,
« no previous file with comments | « no previous file | content/child/v8_value_converter_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698