diff options
Diffstat (limited to 'contexts/data/lib/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html')
-rw-r--r-- | contexts/data/lib/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/contexts/data/lib/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html b/contexts/data/lib/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html deleted file mode 100644 index 8d3ba7f..0000000 --- a/contexts/data/lib/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html +++ /dev/null @@ -1,62 +0,0 @@ -<!DOCTYPE html> -<!-- -Copyright 2012 The Closure Library Authors. All Rights Reserved. - -Use of this source code is governed by the Apache License, Version 2.0. -See the COPYING file for details. ---> -<html> - <head> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <title>Closure Unit Tests - goog.i18n.uChar.LocalNameFetcher</title> - <meta charset="utf-8"> - <script src='../../base.js'> - </script> - <script> - goog.require('goog.i18n.uChar.LocalNameFetcher'); - goog.require('goog.testing.jsunit'); - goog.require('goog.testing.recordFunction'); - </script> - </head> - <body> - <script> -var nameFetcher = null; - -function setUp() { - nameFetcher = new goog.i18n.uChar.LocalNameFetcher(); -} - -function testGetName_exists() { - var callback = goog.testing.recordFunction(function(name) { - assertEquals('Space', name); - }); - nameFetcher.getName(' ', callback); - assertEquals(1, callback.getCallCount()); -} - -function testGetName_variationSelector() { - var callback = goog.testing.recordFunction(function(name) { - assertEquals('Variation Selector - 1', name); - }); - nameFetcher.getName('\ufe00', callback); - assertEquals(1, callback.getCallCount()); -} - -function testGetName_missing() { - var callback = goog.testing.recordFunction(function(name) { - assertNull(name); - }); - nameFetcher.getName('P', callback); - assertEquals(1, callback.getCallCount()); -} - -function testIsNameAvailable_withAvailableName() { - assertTrue(nameFetcher.isNameAvailable(' ')); -} - -function testIsNameAvailable_withoutAvailableName() { - assertFalse(nameFetcher.isNameAvailable('a')); -} - </script> - </body> -</html> |