зеркало из https://github.com/mozilla/pjs.git
Bug 630462 Tweak test to ignore about:blank pages harder r=Unfocused a=test-only
This commit is contained in:
Родитель
9b78a2e1fa
Коммит
a70ad50436
|
@ -136,8 +136,8 @@ add_test(function() {
|
|||
|
||||
// Tests that clicking the buy button works from the list
|
||||
add_test(function() {
|
||||
gBrowser.addEventListener("load", function() {
|
||||
if (gBrowser.currentURI.spec == "about:blank")
|
||||
gBrowser.addEventListener("load", function(event) {
|
||||
if (event.target.location.href == "about:blank")
|
||||
return;
|
||||
gBrowser.removeEventListener("load", arguments.callee, true);
|
||||
|
||||
|
@ -160,8 +160,8 @@ add_test(function() {
|
|||
|
||||
// Tests that clicking the buy button from the details view works
|
||||
add_test(function() {
|
||||
gBrowser.addEventListener("load", function() {
|
||||
if (gBrowser.currentURI.spec == "about:blank")
|
||||
gBrowser.addEventListener("load", function(event) {
|
||||
if (event.target.location.href == "about:blank")
|
||||
return;
|
||||
gBrowser.removeEventListener("load", arguments.callee, true);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче