This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1137501 - Use short_name in installation dialog
- Loading branch information
1 parent
02e2d06
commit 3225261
Showing
4 changed files
with
51 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use strict'; | ||
|
||
/* global ManifestHelper */ | ||
|
||
require('/shared/js/manifest_helper.js'); | ||
|
||
suite('Manifest Helper', function() { | ||
|
||
var manifest = { | ||
'name': 'Long Name' | ||
}; | ||
|
||
var manifestWithShortName = { | ||
'name': 'Long Name', | ||
'short_name': 'Short Name' | ||
}; | ||
|
||
test('displayName with short name', function() { | ||
var helper = new ManifestHelper(manifestWithShortName); | ||
assert.equal('Short Name', helper.displayName); | ||
}); | ||
|
||
test('displayName with no short name', function() { | ||
var helper = new ManifestHelper(manifest); | ||
assert.equal('Long Name', helper.displayName); | ||
}); | ||
|
||
}); |
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