aboutsummaryrefslogtreecommitdiff
path: root/contexts/data/lib/closure-library/closure/goog/debug/fpsdisplay_test.html
diff options
context:
space:
mode:
Diffstat (limited to 'contexts/data/lib/closure-library/closure/goog/debug/fpsdisplay_test.html')
-rw-r--r--contexts/data/lib/closure-library/closure/goog/debug/fpsdisplay_test.html53
1 files changed, 0 insertions, 53 deletions
diff --git a/contexts/data/lib/closure-library/closure/goog/debug/fpsdisplay_test.html b/contexts/data/lib/closure-library/closure/goog/debug/fpsdisplay_test.html
deleted file mode 100644
index 5697d26..0000000
--- a/contexts/data/lib/closure-library/closure/goog/debug/fpsdisplay_test.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<html>
-<!--
-Copyright 2011 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.debug.FpsDisplay</title>
-<script src="../base.js"></script>
-<script>
- goog.require('goog.debug.FpsDisplay');
- goog.require('goog.testing.AsyncTestCase');
- goog.require('goog.testing.jsunit');
-</script>
-</head>
-<body>
-<script>
-
-var asyncTestCase = goog.testing.AsyncTestCase.createAndInstall();
-var fpsDisplay;
-var timer;
-asyncTestCase.stepTimeout = 10 * 1000;
-
-function setUp() {
- fpsDisplay = new goog.debug.FpsDisplay();
-}
-
-function tearDown() {
- goog.dispose(fpsDisplay);
- window.clearTimeout(timer);
-}
-
-function testRendering() {
- fpsDisplay.render();
-
- var elem = fpsDisplay.getElement();
- assertHTMLEquals('', elem.innerHTML);
-
- asyncTestCase.waitForAsync('Waiting for some frames to pass');
- timer = window.setTimeout(function() {
- var fps = parseInt(elem.innerHTML, 10);
- assertTrue('FPS of ' + fps + ' should be non-negative', fps >= 0);
- assertTrue('FPS of ' + fps + ' too big', fps < 1000);
- asyncTestCase.continueTesting();
- }, 2000);
-}
-
-</script>
-</body>
-</html>