Sha256: e7b15a87dca343d661c1ad4495debb184a9d18b64a8daf33607d46545c7f5a58

Contents?: true

Size: 1005 Bytes

Versions: 8

Compression:

Stored size: 1005 Bytes

Contents

<!DOCTYPE html>
<html>
<!--
Copyright 2010 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>
<title>
  Closure Unit Tests - goog.messaging
</title>
<script src="../base.js"></script>
<script>
  goog.require('goog.messaging');
  goog.require('goog.testing.MockControl');
  goog.require('goog.testing.jsunit');
  goog.require('goog.testing.messaging.MockMessageChannel');
</script>
</head>
<body>
<script>

function testPipe() {
  var mockControl = new goog.testing.MockControl();
  var ch1 = new goog.testing.messaging.MockMessageChannel(mockControl);
  var ch2 = new goog.testing.messaging.MockMessageChannel(mockControl);
  ch1.send('ping', 'HELLO');
  ch2.send('pong', {key: 'value'});
  goog.messaging.pipe(ch1, ch2);

  mockControl.$replayAll();
  ch2.receive('ping', 'HELLO');
  ch1.receive('pong', {key: 'value'});
  mockControl.$verifyAll();
}

</script>
</body>
</html>

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
k4compiler-0.0.1 third_party/closure-library/closure/goog/messaging/messaging_test.html
middleman-wizard-template-1.0.4 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/messaging_test.html
middleman-wizard-template-1.0.3 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/messaging_test.html
middleman-wizard-template-1.0.2 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/messaging_test.html
middleman-wizard-template-1.0.1 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/messaging_test.html
middleman-wizard-template-1.0.0.pre.1 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/messaging_test.html
closure-1.2.701 closure-library/closure/goog/messaging/messaging_test.html
closure-1.1.692 closure-library/closure/goog/messaging/messaging_test.html