aboutsummaryrefslogtreecommitdiff
path: root/contexts/data/lib/closure-library/closure/goog/testing/mockrange_test.html
diff options
context:
space:
mode:
Diffstat (limited to 'contexts/data/lib/closure-library/closure/goog/testing/mockrange_test.html')
-rw-r--r--contexts/data/lib/closure-library/closure/goog/testing/mockrange_test.html41
1 files changed, 0 insertions, 41 deletions
diff --git a/contexts/data/lib/closure-library/closure/goog/testing/mockrange_test.html b/contexts/data/lib/closure-library/closure/goog/testing/mockrange_test.html
deleted file mode 100644
index d4b5324..0000000
--- a/contexts/data/lib/closure-library/closure/goog/testing/mockrange_test.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<!--
-Copyright 2008 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.testing.MockRange</title>
-<script src="../base.js"></script>
-<script>
- goog.require('goog.testing.MockRange');
- goog.require('goog.testing.jsunit');
-</script>
-</head>
-<body>
-<script>
-
- /**
- * Tests that a MockRange can be created successfully, a call to a mock
- * method can be recorded, and the correct behavior replayed and verified.
- */
- function testMockMethod() {
- var mockRange = new goog.testing.MockRange();
- mockRange.getStartOffset().$returns(42);
- mockRange.$replay();
-
- assertEquals('Mock method should return recorded value',
- 42,
- mockRange.getStartOffset());
- mockRange.$verify();
- }
-
-</script>
-</body>
-</html>