зеркало из https://github.com/mozilla/gecko-dev.git
Bug 947574: Add some better debugging info to browser/components/search/test/browser_426329.js to help diagnose intermittent timeouts
This commit is contained in:
Родитель
df410c61ef
Коммит
204f8dfcc3
|
@ -63,7 +63,7 @@ function test() {
|
||||||
is(gBrowser.tabs.length, preTabNo, "Return key did not open new tab");
|
is(gBrowser.tabs.length, preTabNo, "Return key did not open new tab");
|
||||||
is(event.originalTarget, preSelectedBrowser.contentDocument,
|
is(event.originalTarget, preSelectedBrowser.contentDocument,
|
||||||
"Return key loaded results in current tab");
|
"Return key loaded results in current tab");
|
||||||
is(event.originalTarget.URL, expectedURL(searchBar.value), "Check URL of search page opened");
|
is(event.originalTarget.URL, expectedURL(searchBar.value), "testReturn opened correct search page");
|
||||||
|
|
||||||
testAltReturn();
|
testAltReturn();
|
||||||
});
|
});
|
||||||
|
@ -79,7 +79,7 @@ function test() {
|
||||||
"Alt+Return key loaded results in new tab");
|
"Alt+Return key loaded results in new tab");
|
||||||
is(event.originalTarget, gBrowser.contentDocument,
|
is(event.originalTarget, gBrowser.contentDocument,
|
||||||
"Alt+Return key loaded results in foreground tab");
|
"Alt+Return key loaded results in foreground tab");
|
||||||
is(event.originalTarget.URL, expectedURL(searchBar.value), "Check URL of search page opened");
|
is(event.originalTarget.URL, expectedURL(searchBar.value), "testAltReturn opened correct search page");
|
||||||
|
|
||||||
//Shift key has no effect for now, so skip it
|
//Shift key has no effect for now, so skip it
|
||||||
//testShiftAltReturn();
|
//testShiftAltReturn();
|
||||||
|
@ -97,7 +97,7 @@ function test() {
|
||||||
"Shift+Alt+Return key loaded results in new tab");
|
"Shift+Alt+Return key loaded results in new tab");
|
||||||
isnot(event.originalTarget, gBrowser.contentDocument,
|
isnot(event.originalTarget, gBrowser.contentDocument,
|
||||||
"Shift+Alt+Return key loaded results in background tab");
|
"Shift+Alt+Return key loaded results in background tab");
|
||||||
is(event.originalTarget.URL, expectedURL(searchBar.value), "Check URL of search page opened");
|
is(event.originalTarget.URL, expectedURL(searchBar.value), "testShiftAltReturn opened correct search page");
|
||||||
|
|
||||||
testLeftClick();
|
testLeftClick();
|
||||||
});
|
});
|
||||||
|
@ -111,7 +111,7 @@ function test() {
|
||||||
is(gBrowser.tabs.length, preTabNo, "LeftClick did not open new tab");
|
is(gBrowser.tabs.length, preTabNo, "LeftClick did not open new tab");
|
||||||
is(event.originalTarget, preSelectedBrowser.contentDocument,
|
is(event.originalTarget, preSelectedBrowser.contentDocument,
|
||||||
"LeftClick loaded results in current tab");
|
"LeftClick loaded results in current tab");
|
||||||
is(event.originalTarget.URL, expectedURL(searchBar.value), "Check URL of search page opened");
|
is(event.originalTarget.URL, expectedURL(searchBar.value), "testLeftClick opened correct search page");
|
||||||
|
|
||||||
testMiddleClick();
|
testMiddleClick();
|
||||||
});
|
});
|
||||||
|
@ -127,7 +127,7 @@ function test() {
|
||||||
"MiddleClick loaded results in new tab");
|
"MiddleClick loaded results in new tab");
|
||||||
is(event.originalTarget, gBrowser.contentDocument,
|
is(event.originalTarget, gBrowser.contentDocument,
|
||||||
"MiddleClick loaded results in foreground tab");
|
"MiddleClick loaded results in foreground tab");
|
||||||
is(event.originalTarget.URL, expectedURL(searchBar.value), "Check URL of search page opened");
|
is(event.originalTarget.URL, expectedURL(searchBar.value), "testMiddleClick opened correct search page");
|
||||||
|
|
||||||
testShiftMiddleClick();
|
testShiftMiddleClick();
|
||||||
});
|
});
|
||||||
|
@ -143,7 +143,7 @@ function test() {
|
||||||
"Shift+MiddleClick loaded results in new tab");
|
"Shift+MiddleClick loaded results in new tab");
|
||||||
isnot(event.originalTarget, gBrowser.contentDocument,
|
isnot(event.originalTarget, gBrowser.contentDocument,
|
||||||
"Shift+MiddleClick loaded results in background tab");
|
"Shift+MiddleClick loaded results in background tab");
|
||||||
is(event.originalTarget.URL, expectedURL(searchBar.value), "Check URL of search page opened");
|
is(event.originalTarget.URL, expectedURL(searchBar.value), "testShiftMiddleClick opened correct search page");
|
||||||
|
|
||||||
testDropText();
|
testDropText();
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче