mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
0c47a62798
--HG-- rename : browser/devtools/inspector/test/browser_inspector_bug_817558_delete_node.js => browser/devtools/inspector/test/browser_inspector_delete-selected-node-01.js rename : browser/devtools/inspector/test/browser_inspector_bug_848731_reset_selection_on_delete.js => browser/devtools/inspector/test/browser_inspector_delete-selected-node-02.js rename : browser/devtools/inspector/test/browser_inspector_destroyselection.js => browser/devtools/inspector/test/browser_inspector_delete-selected-node-03.js rename : browser/devtools/inspector/test/browser_inspector_bug_840156_destroy_after_navigation.js => browser/devtools/inspector/test/browser_inspector_destroy-after-navigation.js rename : browser/devtools/inspector/test/browser_inspector_cmd_inspect.js => browser/devtools/inspector/test/browser_inspector_gcli-inspect-command.js rename : browser/devtools/inspector/test/browser_inspector_basic_highlighter.js => browser/devtools/inspector/test/browser_inspector_highlighter-01.js rename : browser/devtools/inspector/test/browser_inspector_highlighter.js => browser/devtools/inspector/test/browser_inspector_highlighter-02.js rename : browser/devtools/inspector/test/browser_inspector_bug_674871.js => browser/devtools/inspector/test/browser_inspector_highlighter-03.js rename : browser/devtools/inspector/test/browser_inspector_bug_958456_highlight_comments.js => browser/devtools/inspector/test/browser_inspector_highlighter-comments.js rename : browser/devtools/inspector/test/browser_inspector_iframeTest.js => browser/devtools/inspector/test/browser_inspector_highlighter-iframes.js rename : browser/devtools/inspector/test/browser_inspector_bug_699308_iframe_navigation.js => browser/devtools/inspector/test/browser_inspector_iframe-navigation.js rename : browser/devtools/inspector/test/browser_inspector_bug_665880.js => browser/devtools/inspector/test/browser_inspector_inspect-object-element.js rename : browser/devtools/inspector/test/browser_inspector_bug_672902_keyboard_shortcuts.js => browser/devtools/inspector/test/browser_inspector_keyboard-shortcuts.js rename : browser/devtools/inspector/test/browser_inspector_bug_962478_picker_stops_on_destroy.js => browser/devtools/inspector/test/browser_inspector_picker-stop-on-destroy.js rename : browser/devtools/inspector/test/browser_inspector_bug_961771_picker_stops_on_tool_select.js => browser/devtools/inspector/test/browser_inspector_picker-stop-on-tool-change.js rename : browser/devtools/inspector/test/browser_inspector_pseudoclass_lock.js => browser/devtools/inspector/test/browser_inspector_pseudoclass-lock.js rename : browser/devtools/inspector/test/browser_inspector_pseudoClass_menu.js => browser/devtools/inspector/test/browser_inspector_pseudoclass-menu.js rename : browser/devtools/inspector/test/browser_inspector_dead_node_exception.js => browser/devtools/inspector/test/browser_inspector_remove-iframe-during-load.js rename : browser/devtools/inspector/test/browser_inspector_bug_650804_search.js => browser/devtools/inspector/test/browser_inspector_search-01.js rename : browser/devtools/inspector/test/browser_inspector_bug_831693_combinator_suggestions.js => browser/devtools/inspector/test/browser_inspector_search-02.js rename : browser/devtools/inspector/test/browser_inspector_bug_831693_input_suggestion.js => browser/devtools/inspector/test/browser_inspector_search-03.js rename : browser/devtools/inspector/test/browser_inspector_bug_831693_searchbox_panel_navigation.js => browser/devtools/inspector/test/browser_inspector_search-navigation.js rename : browser/devtools/inspector/test/browser_inspector_select_last_selected.js => browser/devtools/inspector/test/browser_inspector_select-last-selected.js rename : browser/devtools/inspector/test/browser_inspector_bug_958169_switch_to_inspector_on_pick.js => browser/devtools/inspector/test/browser_inspector_switch-to-inspector-on-pick.js rename : browser/devtools/inspector/test/browser_inspector_bug_922125_destroy_on_navigate.js => browser/devtools/inspector/test/browser_inspector_update-on-navigation.js rename : browser/devtools/inspector/test/browser_inspector_breadcrumbs.html => browser/devtools/inspector/test/doc_inspector_breadcrumbs.html rename : browser/devtools/inspector/test/browser_inspector_destroyselection.html => browser/devtools/inspector/test/doc_inspector_delete-selected-node-01.html rename : browser/devtools/inspector/test/browser_inspector_bug_848731_reset_selection_on_delete.html => browser/devtools/inspector/test/doc_inspector_delete-selected-node-02.html rename : browser/devtools/inspector/test/browser_inspector_cmd_inspect.html => browser/devtools/inspector/test/doc_inspector_gcli-inspect-command.html rename : browser/devtools/inspector/test/browser_inspector_bug_958456_highlight_comments.html => browser/devtools/inspector/test/doc_inspector_highlighter-comments.html rename : browser/devtools/inspector/test/browser_inspector_highlighter.html => browser/devtools/inspector/test/doc_inspector_highlighter.html rename : browser/devtools/inspector/test/browser_inspector_infobar.html => browser/devtools/inspector/test/doc_inspector_infobar.html rename : browser/devtools/inspector/test/browser_inspector_menu.html => browser/devtools/inspector/test/doc_inspector_menu.html rename : browser/devtools/inspector/test/browser_inspector_dead_node_exception.html => browser/devtools/inspector/test/doc_inspector_remove-iframe-during-load.html rename : browser/devtools/inspector/test/browser_inspector_bug_831693_search_suggestions.html => browser/devtools/inspector/test/doc_inspector_search-suggestions.html rename : browser/devtools/inspector/test/browser_inspector_bug_650804_search.html => browser/devtools/inspector/test/doc_inspector_search.html rename : browser/devtools/inspector/test/browser_inspector_select_last_selected.html => browser/devtools/inspector/test/doc_inspector_select-last-selected-01.html rename : browser/devtools/inspector/test/browser_inspector_select_last_selected2.html => browser/devtools/inspector/test/doc_inspector_select-last-selected-02.html
135 lines
3.3 KiB
JavaScript
135 lines
3.3 KiB
JavaScript
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
"use strict";
|
|
|
|
// Testing that the gcli 'inspect' command works as it should.
|
|
|
|
const TEST_URI = TEST_URL_ROOT + "doc_inspector_gcli-inspect-command.html";
|
|
|
|
let test = asyncTest(function* () {
|
|
return helpers.addTabWithToolbar(TEST_URI, function(options) {
|
|
return helpers.audit(options, [
|
|
{
|
|
setup: "inspect",
|
|
check: {
|
|
input: 'inspect',
|
|
hints: ' <selector>',
|
|
markup: 'VVVVVVV',
|
|
status: 'ERROR',
|
|
args: {
|
|
selector: {
|
|
message: 'Value required for \'selector\'.'
|
|
},
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect h1",
|
|
check: {
|
|
input: 'inspect h1',
|
|
hints: '',
|
|
markup: 'VVVVVVVVII',
|
|
status: 'ERROR',
|
|
args: {
|
|
selector: { message: 'No matches' },
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect span",
|
|
check: {
|
|
input: 'inspect span',
|
|
hints: '',
|
|
markup: 'VVVVVVVVEEEE',
|
|
status: 'ERROR',
|
|
args: {
|
|
selector: { message: 'Too many matches (2)' },
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect div",
|
|
check: {
|
|
input: 'inspect div',
|
|
hints: '',
|
|
markup: 'VVVVVVVVVVV',
|
|
status: 'VALID',
|
|
args: {
|
|
selector: { message: '' },
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect .someclas",
|
|
check: {
|
|
input: 'inspect .someclas',
|
|
hints: '',
|
|
markup: 'VVVVVVVVIIIIIIIII',
|
|
status: 'ERROR',
|
|
args: {
|
|
selector: { message: 'No matches' },
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect .someclass",
|
|
check: {
|
|
input: 'inspect .someclass',
|
|
hints: '',
|
|
markup: 'VVVVVVVVVVVVVVVVVV',
|
|
status: 'VALID',
|
|
args: {
|
|
selector: { message: '' },
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect #someid",
|
|
check: {
|
|
input: 'inspect #someid',
|
|
hints: '',
|
|
markup: 'VVVVVVVVVVVVVVV',
|
|
status: 'VALID',
|
|
args: {
|
|
selector: { message: '' },
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect button[disabled]",
|
|
check: {
|
|
input: 'inspect button[disabled]',
|
|
hints: '',
|
|
markup: 'VVVVVVVVVVVVVVVVVVVVVVVV',
|
|
status: 'VALID',
|
|
args: {
|
|
selector: { message: '' },
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect p>strong",
|
|
check: {
|
|
input: 'inspect p>strong',
|
|
hints: '',
|
|
markup: 'VVVVVVVVVVVVVVVV',
|
|
status: 'VALID',
|
|
args: {
|
|
selector: { message: '' },
|
|
}
|
|
},
|
|
},
|
|
{
|
|
setup: "inspect :root",
|
|
check: {
|
|
input: 'inspect :root',
|
|
hints: '',
|
|
markup: 'VVVVVVVVVVVVV',
|
|
status: 'VALID'
|
|
},
|
|
},
|
|
]); // helpers.audit
|
|
}); // helpers.addTabWithToolbar
|
|
}); // asyncTest
|