| 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 | 5 |
| 6 <script> | 6 <script> |
| 7 // Global Values | 7 // Global Values |
| 8 var globals = []; | 8 var globals = []; |
| 9 | 9 |
| 10 function log(current) | 10 function log(current) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 return 2; | 48 return 2; |
| 49 }; | 49 }; |
| 50 var num = 1.2e-1; | 50 var num = 1.2e-1; |
| 51 var linkify = "http://webkit.org/"; | 51 var linkify = "http://webkit.org/"; |
| 52 var valuelessAttribute = document.createAttribute("attr"); | 52 var valuelessAttribute = document.createAttribute("attr"); |
| 53 var valuedAttribute = document.createAttribute("attr"); | 53 var valuedAttribute = document.createAttribute("attr"); |
| 54 valuedAttribute.value = "value"; | 54 valuedAttribute.value = "value"; |
| 55 var existingAttribute = document.getElementById("x").attributes[0]; | 55 var existingAttribute = document.getElementById("x").attributes[0]; |
| 56 var throwingLengthGetter = {get length() { throw "Length called"; }}; | 56 var throwingLengthGetter = {get length() { throw "Length called"; }}; |
| 57 var objectWithNonEnumerables = Object.create({ foo: 1 }, { | 57 var objectWithNonEnumerables = Object.create({ foo: 1 }, { |
| 58 __underscoreNonEnumerableProp: { value: 2, enumerable: false }, |
| 59 abc: { value: 3, enumerable: false }, |
| 58 getFoo: { value: function() { return this.foo; } }, | 60 getFoo: { value: function() { return this.foo; } }, |
| 59 bar: { get: function() { return this.bar; }, set: function(x) { this.bar
= x; } } | 61 bar: { get: function() { return this.bar; }, set: function(x) { this.bar
= x; } } |
| 60 }); | 62 }); |
| 63 objectWithNonEnumerables.enumerableProp = 4; |
| 64 objectWithNonEnumerables.__underscoreEnumerableProp__ = 5; |
| 61 var negZero = 1 / Number.NEGATIVE_INFINITY; | 65 var negZero = 1 / Number.NEGATIVE_INFINITY; |
| 62 var textNode = document.getElementById("x").nextSibling; | 66 var textNode = document.getElementById("x").nextSibling; |
| 63 var arrayLikeFunction = function( /**/ foo/**/, /*/**/bar, | 67 var arrayLikeFunction = function( /**/ foo/**/, /*/**/bar, |
| 64 /**/baz) {}; | 68 /**/baz) {}; |
| 65 arrayLikeFunction.splice = function() {}; | 69 arrayLikeFunction.splice = function() {}; |
| 66 var smallTypedArray = new Uint8Array(new ArrayBuffer(400)); | 70 var smallTypedArray = new Uint8Array(new ArrayBuffer(400)); |
| 67 smallTypedArray["foo"] = "bar"; | 71 smallTypedArray["foo"] = "bar"; |
| 68 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000)); | 72 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000)); |
| 69 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have
been run"; | 73 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have
been run"; |
| 70 globals = [ | 74 globals = [ |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 } | 140 } |
| 137 </script> | 141 </script> |
| 138 </head> | 142 </head> |
| 139 | 143 |
| 140 <body onload="onload()"> | 144 <body onload="onload()"> |
| 141 <div id="x"></div> | 145 <div id="x"></div> |
| 142 <p id="p">Tests that console logging dumps proper messages.</p> | 146 <p id="p">Tests that console logging dumps proper messages.</p> |
| 143 </body> | 147 </body> |
| 144 <svg id="svg-node"></svg> | 148 <svg id="svg-node"></svg> |
| 145 </html> | 149 </html> |
| OLD | NEW |