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

Unified Diff: LayoutTests/inspector/runtime/runtime-setPropertyValue.html

Issue 83383002: DevTools: Allow setting -0 value to object property (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 7 years 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 | LayoutTests/inspector/runtime/runtime-setPropertyValue-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/runtime/runtime-setPropertyValue.html
diff --git a/LayoutTests/inspector/runtime/runtime-setPropertyValue.html b/LayoutTests/inspector/runtime/runtime-setPropertyValue.html
index b6c7a70e475563e667de986c84542a0394080afb..13515aaed94e8e21facd481c00167c61ca17c4c4 100644
--- a/LayoutTests/inspector/runtime/runtime-setPropertyValue.html
+++ b/LayoutTests/inspector/runtime/runtime-setPropertyValue.html
@@ -20,6 +20,12 @@ function dumpObject(label)
}
}
+function checkNegativeZero()
+{
+ console.log("===== Checking negative zero =====");
+ console.log("1/-0 = " + (1 / object1.foo));
+}
+
function test()
{
var obj1, obj2;
@@ -138,6 +144,16 @@ function test()
}
},
+ function testNegativeZero(next)
+ {
+ obj1.setPropertyValue("foo", "1/-Infinity", step1);
+
+ function step1(error)
+ {
+ InspectorTest.evaluateInPage("checkNegativeZero()", next);
+ }
+ },
+
function testReleaseObjectIsCalled(next)
{
// If failed, this test will time out.
« no previous file with comments | « no previous file | LayoutTests/inspector/runtime/runtime-setPropertyValue-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698