Bug 1241634: Use is instead of ok in tests. r=me

This commit is contained in:
Kyle Huey 2016-02-18 17:32:34 -08:00
parent 9234bc33fd
commit acacadfda1

View File

@ -90,12 +90,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=840388
switch(event.data.test) {
case "insecurePage_navigate_child":
ok((event.data.msg == "navigated to insecure iframe on insecure page"), "navigating to insecure iframe blocked on insecure page");
is(event.data.msg, "navigated to insecure iframe on insecure page", "navigating to insecure iframe blocked on insecure page");
testsToRunInsecure["insecurePage_navigate_child"] = true;
break;
case "insecurePage_navigate_grandchild":
ok((event.data.msg == "navigated to insecure grandchild iframe on insecure page"), "navigating to insecure grandchild iframe blocked on insecure page");
is(event.data.msg, "navigated to insecure grandchild iframe on insecure page", "navigating to insecure grandchild iframe blocked on insecure page");
testsToRunInsecure["insecurePage_navigate_grandchild"] = true;
break;
@ -105,7 +105,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=840388
break;
case "blankTarget":
ok((event.data.msg == "opened an http link with target=_blank from a secure page"), "couldn't open an http link in a new window from a secure page");
is(event.data.msg, "opened an http link with target=_blank from a secure page", "couldn't open an http link in a new window from a secure page");
testsToRunSecure["blankTarget"] = true;
break;