Sha256: 406a84d0ac4de6b86b20c57dfe23f078f2c2940ae0bd3a0ddc779045581e380e

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

<!DOCTYPE html>
<html>
<!--
Copyright 2013 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.
-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Closure Unit Tests - goog.events.Listenable</title>
<script src="../base.js"></script>
<script>
  goog.require('goog.events.Listenable');
  goog.require('goog.testing.jsunit');
</script>
<script>

function testIsImplementedBy() {
  var ListenableClass = function() {};
  goog.events.Listenable.addImplementation(ListenableClass);

  var NonListenableClass = function() {};

  assertTrue(goog.events.Listenable.isImplementedBy(new ListenableClass()));
  assertFalse(goog.events.Listenable.isImplementedBy(new NonListenableClass()));
}

</script>
</head>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
k4compiler-0.0.1 third_party/closure-library/closure/goog/events/listenable_test.html