Sha256: 99b71657b60660ebc1ecc89d97903b5f1a6e5a8e6fd0b8093351b1a171219c65

Contents?: true

Size: 1.61 KB

Versions: 6

Compression:

Stored size: 1.61 KB

Contents

<!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>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
k4compiler-0.0.1 third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html
middleman-wizard-template-1.0.4 lib/middleman-wizard-template/template/closure/library/closure/goog/i18n/uchar/localnamefetcher_test.html
middleman-wizard-template-1.0.3 lib/middleman-wizard-template/template/closure/library/closure/goog/i18n/uchar/localnamefetcher_test.html
middleman-wizard-template-1.0.2 lib/middleman-wizard-template/template/closure/library/closure/goog/i18n/uchar/localnamefetcher_test.html
middleman-wizard-template-1.0.1 lib/middleman-wizard-template/template/closure/library/closure/goog/i18n/uchar/localnamefetcher_test.html
middleman-wizard-template-1.0.0.pre.1 lib/middleman-wizard-template/template/closure/library/closure/goog/i18n/uchar/localnamefetcher_test.html