| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 var object1 = { foo: 1 }; | 6 var object1 = { foo: 1 }; |
| 7 var object2 = { bar: 2 }; | 7 var object2 = { bar: 2 }; |
| 8 | 8 |
| 9 function dumpObject(label) | 9 function dumpObject(label) |
| 10 { | 10 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 function checkNegativeZero() | 23 function checkNegativeZero() |
| 24 { | 24 { |
| 25 console.log("===== Checking negative zero ====="); | 25 console.log("===== Checking negative zero ====="); |
| 26 console.log("1/-0 = " + (1 / object1.foo)); | 26 console.log("1/-0 = " + (1 / object1.foo)); |
| 27 } | 27 } |
| 28 | 28 |
| 29 function test() | 29 function test() |
| 30 { | 30 { |
| 31 var obj1, obj2; | 31 var obj1, obj2; |
| 32 var nameFoo = WebInspector.RemoteObject.toCallArgument("foo"); | 32 var nameFoo = SDK.RemoteObject.toCallArgument("foo"); |
| 33 | 33 |
| 34 InspectorTest.runTestSuite([ | 34 InspectorTest.runTestSuite([ |
| 35 function testSetUp(next) | 35 function testSetUp(next) |
| 36 { | 36 { |
| 37 InspectorTest.evaluateInPage("dumpObject('Initial')", step0); | 37 InspectorTest.evaluateInPage("dumpObject('Initial')", step0); |
| 38 | 38 |
| 39 function step0() | 39 function step0() |
| 40 { | 40 { |
| 41 InspectorTest.RuntimeAgent.evaluate("object1", step1); | 41 InspectorTest.RuntimeAgent.evaluate("object1", step1); |
| 42 } | 42 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 InspectorTest.evaluateInPage("dumpObject('Set exception')", next
); | 124 InspectorTest.evaluateInPage("dumpObject('Set exception')", next
); |
| 125 } | 125 } |
| 126 }, | 126 }, |
| 127 | 127 |
| 128 function testSetNonFiniteNumbers(next) | 128 function testSetNonFiniteNumbers(next) |
| 129 { | 129 { |
| 130 obj1.setPropertyValue(nameFoo, "NaN", step1); | 130 obj1.setPropertyValue(nameFoo, "NaN", step1); |
| 131 | 131 |
| 132 function step1(error) | 132 function step1(error) |
| 133 { | 133 { |
| 134 obj1.setPropertyValue(WebInspector.RemoteObject.toCallArgument("
foo1"), "Infinity", step2); | 134 obj1.setPropertyValue(SDK.RemoteObject.toCallArgument("foo1"), "
Infinity", step2); |
| 135 } | 135 } |
| 136 | 136 |
| 137 function step2(error) | 137 function step2(error) |
| 138 { | 138 { |
| 139 obj1.setPropertyValue(WebInspector.RemoteObject.toCallArgument("
foo2"), "-Infinity", step3); | 139 obj1.setPropertyValue(SDK.RemoteObject.toCallArgument("foo2"), "
-Infinity", step3); |
| 140 } | 140 } |
| 141 | 141 |
| 142 function step3(error) | 142 function step3(error) |
| 143 { | 143 { |
| 144 InspectorTest.evaluateInPage("dumpObject('Set non-finite numbers
')", next); | 144 InspectorTest.evaluateInPage("dumpObject('Set non-finite numbers
')", next); |
| 145 } | 145 } |
| 146 }, | 146 }, |
| 147 | 147 |
| 148 function testNegativeZero(next) | 148 function testNegativeZero(next) |
| 149 { | 149 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 167 </script> | 167 </script> |
| 168 </head> | 168 </head> |
| 169 | 169 |
| 170 <body onload="runTest()"> | 170 <body onload="runTest()"> |
| 171 <p> | 171 <p> |
| 172 Tests WebInspector.RemoveObject.setPropertyValue implementation. | 172 Tests WebInspector.RemoveObject.setPropertyValue implementation. |
| 173 </p> | 173 </p> |
| 174 | 174 |
| 175 </body> | 175 </body> |
| 176 </html> | 176 </html> |
| OLD | NEW |