forked from mozilla-b2g/gaia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mozilla-b2g#7612 from dscravag/nightly2
Nightly 2013-01-15
- Loading branch information
Showing
84 changed files
with
1,186 additions
and
805 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,7 +272,7 @@ suite('Render contacts list', function() { | |
assertNoGroup(groupFav, containerFav); | ||
assertGroup(groupA, containerA, 1); | ||
assertGroup(groupB, containerB, 1); | ||
assertGroup(groupB, containerC, 1); | ||
assertGroup(groupC, containerC, 1); | ||
assertNoGroup(groupD, containerD); | ||
|
||
}); | ||
|
@@ -309,13 +309,33 @@ suite('Render contacts list', function() { | |
assertTotal(3, 4); | ||
}); | ||
|
||
test('rendering one with no name and phone', function() { | ||
test('rendering one with no name nor phone and company', function() { | ||
var newContact = new MockContactAllFields(); | ||
newContact.id = '4'; | ||
newContact.familyName = null; | ||
newContact.givenName = null; | ||
newContact.name = null; | ||
newContact.category = null; | ||
newContact.org = 'AD'; | ||
var newList = mockContacts.concat([newContact]); | ||
subject.load(newList); | ||
assert.isTrue(noContacts.classList.contains('hide')); | ||
assertNoGroup(groupFav, containerFav); | ||
var cContacts = assertGroup(groupC, containerC, 1); | ||
assert.isTrue(cContacts[0].innerHTML.indexOf('CC') > -1); | ||
var aContacts = assertGroup(groupA, containerA, 2); | ||
assert.isTrue(aContacts[0].innerHTML.indexOf('AD') > -1); | ||
assertTotal(3, 4); | ||
}); | ||
|
||
test('rendering one with no name nor company and phone', function() { | ||
var newContact = new MockContactAllFields(); | ||
newContact.id = '4'; | ||
newContact.familyName = null; | ||
newContact.givenName = null; | ||
newContact.name = null; | ||
newContact.category = null; | ||
newContact.org = null; | ||
var newList = mockContacts.concat([newContact]); | ||
subject.load(newList); | ||
assert.isTrue(noContacts.classList.contains('hide')); | ||
|
@@ -328,14 +348,15 @@ suite('Render contacts list', function() { | |
assertTotal(4, 4); | ||
}); | ||
|
||
test('rendering one with no name and email', function() { | ||
test('rendering one with no name nor company and email', function() { | ||
var newContact = new MockContactAllFields(); | ||
newContact.id = '4'; | ||
newContact.familyName = null; | ||
newContact.givenName = null; | ||
newContact.name = null; | ||
newContact.category = null; | ||
newContact.tel = null; | ||
newContact.org = null; | ||
newContact.email[0].value = '[email protected]'; | ||
var newList = mockContacts.concat([newContact]); | ||
subject.load(newList); | ||
|
@@ -348,14 +369,15 @@ suite('Render contacts list', function() { | |
assertTotal(3, 4); | ||
}); | ||
|
||
test('rendering one with no name nor email', function() { | ||
test('rendering one with no name nor email nor company', function() { | ||
var newContact = new MockContactAllFields(); | ||
newContact.id = '4'; | ||
newContact.familyName = null; | ||
newContact.givenName = null; | ||
newContact.name = null; | ||
newContact.category = null; | ||
newContact.tel = null; | ||
newContact.org = null; | ||
newContact.email = null; | ||
var newList = mockContacts.concat([newContact]); | ||
subject.load(newList); | ||
|
@@ -368,14 +390,15 @@ suite('Render contacts list', function() { | |
assertTotal(4, 4); | ||
}); | ||
|
||
test('rendering one with no name nor email and favorite', function() { | ||
test('rendering one with no name nor email nor company and favorite', function() { | ||
var newContact = new MockContactAllFields(); | ||
newContact.id = '4'; | ||
newContact.familyName = null; | ||
newContact.givenName = null; | ||
newContact.name = null; | ||
newContact.category = ['favorite']; | ||
newContact.tel = null; | ||
newContact.org = null; | ||
newContact.email = null; | ||
var newList = mockContacts.concat([newContact]); | ||
subject.load(newList); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.