Skip to content

Commit

Permalink
Update the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiele committed Nov 20, 2010
1 parent 1439a1f commit ecea6d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src-test/core/cssfontfamilynametest.js
Expand Up @@ -7,31 +7,31 @@ CssFontFamilyNameTest.prototype.setUp = function() {
CssFontFamilyNameTest.prototype.testSpaceNameWithoutQuotes = function() {
var result = this.sanitizer_.quote('My Family');

assertEquals('"My Family"', result);
assertEquals("'My Family'", result);
};

CssFontFamilyNameTest.prototype.testSpaceNameWithDoubleQuotes = function() {
var result = this.sanitizer_.quote('"My Family"');

assertEquals('"My Family"', result);
assertEquals("'My Family'", result);
};

CssFontFamilyNameTest.prototype.testSpaceNameWithSingleQuotes = function() {
var result = this.sanitizer_.quote('\'My Family\'');

assertEquals('"My Family"', result);
assertEquals("'My Family'", result);
};

CssFontFamilyNameTest.prototype.testSpaceNameWithCommasAndQuotes = function() {
var result = this.sanitizer_.quote('\'family 1\',\'family 2\'');

assertEquals('\"family 1\",\"family 2\"', result);
assertEquals("'family 1','family 2'", result);
};

CssFontFamilyNameTest.prototype.testSpaceNameWithCommaSpaceAndQuotes = function() {
var result = this.sanitizer_.quote('\'family 1\', \'family 2\'');

assertEquals('\"family 1\",\"family 2\"', result);
assertEquals("'family 1','family 2'", result);
};

CssFontFamilyNameTest.prototype.testNoSpaceNameWithoutQuotes = function() {
Expand Down

0 comments on commit ecea6d9

Please sign in to comment.