blob: 6dfcc8aaba68043be96c51f0c9c541b654375bec [file] [log] [blame]
Tests that console artifacts can be expanded, collapsed via keyboard.
Running: testExpandingTraces
Evaluating: console.warn("warning")
Message count: 1
Force selecting index 0
Viewport virtual selection: 0
Is trace expanded: NO
ArrowRight:
Viewport virtual selection: 0
Is trace expanded: YES
ArrowLeft:
Viewport virtual selection: 0
Is trace expanded: NO
Running: testExpandingGroups
Evaluating: console.group("group"); console.log("log child");
Message count: 2
Force selecting index 0
Viewport virtual selection: 0
Is group expanded: YES
console-key-expand.js:35 group
console-key-expand.js:35 log child
ArrowLeft:
Viewport virtual selection: 0
Is group expanded: NO
console-key-expand.js:35 group
ArrowRight:
Viewport virtual selection: 0
Is group expanded: YES
console-key-expand.js:35 group
console-key-expand.js:35 log child
Running: testNavigateBetweenObjectsAndLogs
Evaluating: console.log("before");console.log("text", obj1, obj2);console.log("after");
Message count: 3
Force selecting index 1
Viewport virtual selection: 1
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:51 text {x: 1} {y: 2}
ArrowRight:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {x: 1}
ArrowDown:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {y: 2}
ArrowDown:
Viewport virtual selection: 1
activeElement: SPAN.devtools-link
active text: console-key-expand.js:51
ArrowDown:
Viewport virtual selection: 2
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:51 after
ArrowUp:
Viewport virtual selection: 1
activeElement: SPAN.devtools-link
active text: console-key-expand.js:51
ArrowUp:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {y: 2}
ArrowLeft:
Viewport virtual selection: 1
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:51 text {x: 1} {y: 2}
Running: testExpandingObjects
Evaluating: console.log("before");console.log("text", obj1, obj2);console.log("after");
Message count: 3
Force selecting index 1
Viewport virtual selection: 1
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:74 text {x: 1} {y: 2}
ArrowRight:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {x: 1}
ArrowRight:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.selected.expanded
active text: {x: 1}
ArrowDown:
Viewport virtual selection: 1
activeElement: LI.selected
active text: x: 1
ArrowDown:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {y: 2}
ArrowRight:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.selected.expanded
active text: {y: 2}
ArrowDown:
ArrowDown:
ArrowDown:
Viewport virtual selection: 2
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:74 after
ArrowUp:
ArrowUp:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.expanded.selected
active text: {y: 2}
ArrowLeft:
Viewport virtual selection: 1
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {y: 2}
ArrowLeft:
Viewport virtual selection: 1
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:74 text {x: 1}x: 1 {y: 2}y: 2
Running: testExpandingObjectInTrace
Evaluating: console.log("before");console.warn("warning", obj1);console.log("after");
Message count: 3
Force selecting index 1
Viewport virtual selection: 1
Has object: collapsed
Is trace expanded: NO
activeElement: DIV.console-message-wrapper.console-from-api.console-warning-level.console-selected
active text: console-key-expand.js:117 warning {x: 1}
(anonymous) @ console-key-expand.js:117
ArrowRight:
Viewport virtual selection: 1
Has object: collapsed
Is trace expanded: YES
activeElement: DIV.console-message-wrapper.console-from-api.console-warning-level.console-selected
active text: console-key-expand.js:117 warning {x: 1}
(anonymous) @ console-key-expand.js:117
ArrowRight:
Viewport virtual selection: 1
Has object: collapsed
Is trace expanded: YES
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {x: 1}
ArrowRight:
Viewport virtual selection: 1
Has object: expanded
Is trace expanded: YES
activeElement: LI.parent.object-properties-section-root-element.selected.expanded
active text: {x: 1}
ArrowDown:
Viewport virtual selection: 1
Has object: expanded
Is trace expanded: YES
activeElement: LI.selected
active text: x: 1
ArrowDown:
ArrowDown:
ArrowDown:
Viewport virtual selection: 2
Has object: expanded
Is trace expanded: YES
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:117 after
ArrowUp:
ArrowUp:
Viewport virtual selection: 1
Has object: expanded
Is trace expanded: YES
activeElement: SPAN.devtools-link
active text: console-key-expand.js:117
ArrowUp:
Viewport virtual selection: 1
Has object: expanded
Is trace expanded: YES
activeElement: LI.parent.object-properties-section-root-element.expanded.selected
active text: {x: 1}
ArrowUp:
Viewport virtual selection: 1
Has object: expanded
Is trace expanded: YES
activeElement: DIV.console-message-wrapper.console-from-api.console-warning-level.console-selected
active text: console-key-expand.js:117 warning {x: 1}x: 1
(anonymous) @ console-key-expand.js:117
ArrowLeft:
Viewport virtual selection: 1
Has object: expanded
Is trace expanded: NO
activeElement: DIV.console-message-wrapper.console-from-api.console-warning-level.console-selected
active text: console-key-expand.js:117 warning {x: 1}x: 1
(anonymous) @ console-key-expand.js:117
ArrowLeft:
Viewport virtual selection: 1
Has object: expanded
Is trace expanded: NO
activeElement: DIV.console-message-wrapper.console-from-api.console-warning-level.console-selected
active text: console-key-expand.js:117 warning {x: 1}x: 1
(anonymous) @ console-key-expand.js:117
Running: testExpandingElement
Evaluating: console.log("before");console.log(el);console.log("after");
Message count: 3
Force selecting index 1
Viewport virtual selection: 1
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:167 <div>​…​</div>​
ArrowDown:
ArrowDown:
Viewport virtual selection: 1
activeElement: LI.parent.selected
active text: <div>​…​</div>​
ArrowRight:
Viewport virtual selection: 1
activeElement: LI.parent.selected.expanded
active text: <div>​
Running: testShiftTabShouldSelectLastObject
Evaluating: console.log("before");console.log(obj1);
Message count: 2
Setting focus in prompt:
Shift+Tab:
ArrowUp:
Viewport virtual selection: 1
Has object: collapsed
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {x: 1}
ArrowRight:
Viewport virtual selection: 1
Has object: expanded
activeElement: LI.parent.object-properties-section-root-element.selected.expanded
active text: {x: 1}
Running: testArrowUpToFirstVisibleMessageShouldSelectLastObject
Evaluating: console.log(obj1);console.log("after");
Message count: 2
Setting focus in prompt:
Shift+Tab:
ArrowUp:
Viewport virtual selection: 1
Has object: collapsed
activeElement: DIV.console-message-wrapper.console-from-api.console-info-level.console-selected
active text: console-key-expand.js:199 after
ArrowUp:
ArrowUp:
Viewport virtual selection: 0
Has object: collapsed
activeElement: LI.parent.object-properties-section-root-element.selected
active text: {x: 1}
Running: testFocusLastChildInBigObjectShouldScrollIntoView
Evaluating: console.log(bigObj);
Message count: 1
Setting focus in prompt:
Shift+Tab:
ArrowUp:
ArrowRight:
Tab:
Viewport virtual selection: -1
Has object: expanded
activeElement: TEXTAREA
Shift+Tab:
ArrowUp:
Viewport virtual selection: 0
Has object: expanded
activeElement: LI.parent.object-properties-section-root-element.expanded.selected
active text: {a0: 0, a1: 1, a2: 2, a3: 3, a4: 4, …}
Is at bottom: false, should stick: false