Skip to content
Snippets Groups Projects
Commit 54ccda6a authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

Merge branch 'issue_968_incorrect_email_marked' of github.com:mozilla/browserid into dev

parents 35c88ac4 1738654e
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,6 @@ BrowserID.Modules.PickEmail = (function() {
var valid = checkEmail.call(self, email);
if (valid) {
var origin = user.getOrigin();
storage.site.set(origin, "email", email);
self.close("email_chosen", { email: email });
}
}
......
......@@ -76,7 +76,7 @@
equal(label.hasClass("preselected"), false, "the label has no class");
});
asyncTest("signIn - saves picked email to storage", function() {
asyncTest("signIn - trigger 'email_chosen message'", function() {
storage.addEmail("testuser@testuser.com", {});
storage.addEmail("testuser2@testuser.com", {});
......@@ -87,7 +87,6 @@
var assertion;
register("email_chosen", function(msg, info) {
equal(storage.site.get(testOrigin, "email"), "testuser2@testuser.com", "email saved correctly");
ok(info.email, "email_chosen message triggered with email");
start();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment