Skip to content
Permalink
Browse files
[CB-3488] - Fixed Globalization test to add check or Globalization error
constants

- added new jasmine test or 4 error types
- added jasmine expect to validate error types and values
  • Loading branch information
ldeluca authored and filmaj committed Jun 20, 2013
1 parent c98b753 commit ed3f3d080c9fb0a31bc30c56b1842216e1872b8a
Showing 1 changed file with 10 additions and 0 deletions.
@@ -48,6 +48,16 @@ describe('Globalization (navigator.globalization)', function () {
});
});

describe('Globalization Constants (window.Globalization)', function () {
it("globalization.spec.1 should exist", function() {
expect(window.GlobalizationError).toBeDefined();
expect(window.GlobalizationError.UNKNOWN_ERROR).toBe(0);
expect(window.GlobalizationError.FORMATTING_ERROR).toBe(1);
expect(window.GlobalizationError.PARSING_ERROR).toBe(2);
expect(window.GlobalizationError.PATTERN_ERROR).toBe(3);
});
});

describe("dateToString", function() {
it("globalization.spec.1 should exist", function() {
expect(typeof navigator.globalization.dateToString).toBeDefined();

0 comments on commit ed3f3d0

Please sign in to comment.