| 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 src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 var arrayLikeWithAccessors = { | 7 var arrayLikeWithAccessors = { |
| 8 splice: function() {}, | 8 splice: function() {}, |
| 9 length: 10, | 9 length: 10, |
| 10 get 0() { foo.bar = 1; }, | 10 get 0() { foo.bar = 1; }, |
| 11 get 1() { throw new Error("arrayLikeWithAccessors"); }, | 11 get 1() { throw new Error("arrayLikeWithAccessors"); }, |
| 12 set 3() {}, | 12 set 3(_) {}, |
| 13 4: {foo: 1, bar: 2}, | 13 4: {foo: 1, bar: 2}, |
| 14 get 5() { return {afoo: 3, abar: 4}; }, | 14 get 5() { return {afoo: 3, abar: 4}; }, |
| 15 6: [1, 2], | 15 6: [1, 2], |
| 16 get 7() { return [3, 4]; }, | 16 get 7() { return [3, 4]; }, |
| 17 8: "value8", | 17 8: "value8", |
| 18 get 9() { return NaN; } | 18 get 9() { return NaN; } |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 var objectWithAccessors = { | 21 var objectWithAccessors = { |
| 22 get 0() { baz.baz = 3; }, | 22 get 0() { baz.baz = 3; }, |
| 23 get 1() { throw new Error("objectWithAccessors"); }, | 23 get 1() { throw new Error("objectWithAccessors"); }, |
| 24 set 3() {}, | 24 set 3(_) {}, |
| 25 4: {foo: 1, bar: 2}, | 25 4: {foo: 1, bar: 2}, |
| 26 get 5() { return {afoo: 3, abar: 4}; }, | 26 get 5() { return {afoo: 3, abar: 4}; }, |
| 27 6: [1, 2], | 27 6: [1, 2], |
| 28 get 7() { return [3, 4]; }, | 28 get 7() { return [3, 4]; }, |
| 29 8: function func8() {}, | 29 8: function func8() {}, |
| 30 get 9() { return -Infinity; } | 30 get 9() { return -Infinity; } |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 var tableObject = [arrayLikeWithAccessors, objectWithAccessors]; | 33 var tableObject = [arrayLikeWithAccessors, objectWithAccessors]; |
| 34 | 34 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 </script> | 82 </script> |
| 83 </head> | 83 </head> |
| 84 | 84 |
| 85 <body onload="runTest()"> | 85 <body onload="runTest()"> |
| 86 <p> | 86 <p> |
| 87 Tests that console produces instant previews for arrays and objects that have ge
tters and setters. | 87 Tests that console produces instant previews for arrays and objects that have ge
tters and setters. |
| 88 </p> | 88 </p> |
| 89 | 89 |
| 90 </body> | 90 </body> |
| 91 </html> | 91 </html> |
| OLD | NEW |