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/debugger-test.js"></script> | 4 <script src="../../http/tests/inspector/debugger-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function test() { | 7 function test() { |
8 var setup = [ | 8 var setup = [ |
9 "var proto = Object.create(HTMLElement.prototype);", | 9 "var proto = Object.create(HTMLElement.prototype);", |
10 "proto.createdCallback = function() { output('Invoked createdCallback.')
; };", | 10 "proto.createdCallback = function() { output('Invoked createdCallback.')
; };", |
11 "proto.enteredViewCallback = function() { output('Invoked enteredViewCal
lback.'); };", | 11 "proto.attachedCallback = function() { output('Invoked attachedCallback.
'); };", |
12 "proto.leftViewCallback = function() { output('Invoked leftViewCallback.
'); };", | 12 "proto.detachedCallback = function() { output('Invoked detachedCallback.
'); };", |
13 "proto.attributeChangedCallback = function() { output('Invoked attribute
ChangedCallback.'); };", | 13 "proto.attributeChangedCallback = function() { output('Invoked attribute
ChangedCallback.'); };", |
14 "CustomElement = document.register('x-foo', {prototype: proto});", | 14 "CustomElement = document.registerElement('x-foo', {prototype: proto});"
, |
15 ].join('\n'); | 15 ].join('\n'); |
16 | 16 |
17 var lifecycleCallbacks = [ | 17 var lifecycleCallbacks = [ |
18 "created = new CustomElement();", | 18 "created = new CustomElement();", |
19 "created.setAttribute('x', '1');", | 19 "created.setAttribute('x', '1');", |
20 "document.body.appendChild(created);", | 20 "document.body.appendChild(created);", |
21 "created.remove();", | 21 "created.remove();", |
22 ].join('\n'); | 22 ].join('\n'); |
23 | 23 |
24 InspectorTest.startDebuggerTest(step1); | 24 InspectorTest.startDebuggerTest(step1); |
(...skipping 22 matching lines...) Expand all Loading... |
47 </script> | 47 </script> |
48 </head> | 48 </head> |
49 | 49 |
50 <body onload="runTest()"> | 50 <body onload="runTest()"> |
51 <p> | 51 <p> |
52 Tests that custom element lifecycle events fire while debugger is paused. | 52 Tests that custom element lifecycle events fire while debugger is paused. |
53 </p> | 53 </p> |
54 | 54 |
55 </body> | 55 </body> |
56 </html> | 56 </html> |
OLD | NEW |