aboutsummaryrefslogtreecommitdiff
path: root/contexts/data/lib/closure-library/closure/goog/style/style_webkit_scrollbars_test.html
diff options
context:
space:
mode:
Diffstat (limited to 'contexts/data/lib/closure-library/closure/goog/style/style_webkit_scrollbars_test.html')
-rw-r--r--contexts/data/lib/closure-library/closure/goog/style/style_webkit_scrollbars_test.html80
1 files changed, 0 insertions, 80 deletions
diff --git a/contexts/data/lib/closure-library/closure/goog/style/style_webkit_scrollbars_test.html b/contexts/data/lib/closure-library/closure/goog/style/style_webkit_scrollbars_test.html
deleted file mode 100644
index d1a769a..0000000
--- a/contexts/data/lib/closure-library/closure/goog/style/style_webkit_scrollbars_test.html
+++ /dev/null
@@ -1,80 +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.dom.style</title>
-<script src="../base.js"></script>
-<script>
-
-goog.require('goog.style');
-goog.require('goog.style_test');
-goog.require('goog.testing.jsunit');
-goog.require('goog.testing.ExpectedFailures');
-goog.require('goog.userAgent');
-
-</script>
-<style>
-/*
- * Note that we have to apply these styles when the page is loaded or the
- * scrollbars might not pick them up.
- */
-::-webkit-scrollbar {
- width: 16px;
- height: 16px;
-}
-
-.otherScrollBar::-webkit-scrollbar {
- width: 10px;
- height: 10px;
-}
-</style>
-</head>
-<body>
-
-<div id="test-scrollbarwidth" style="background-color: orange; width: 100px; height: 100px; overflow: auto;">
- <div style='width: 200px; height: 200px; background-color: red'>Test Scroll bar width with scroll</div>
-</div>
-
-<script>
-var expectedFailures = new goog.testing.ExpectedFailures();
-
-function tearDown() {
- expectedFailures.handleTearDown();
-}
-
-function testScrollBarWidth() {
- goog.style_test.testScrollbarWidth();
-}
-
-function testScrollBarWidth_webkitScrollbar() {
- expectedFailures.expectFailureFor(!goog.userAgent.WEBKIT);
-
- try {
- var width = goog.style.getScrollbarWidth();
- assertEquals('Scrollbar width should be 16', 16, width);
- } catch (e) {
- expectedFailures.handleException(e);
- }
-}
-
-function testScrollBarWidth_webkitScrollbarWithCustomClass() {
- expectedFailures.expectFailureFor(!goog.userAgent.WEBKIT);
-
- try {
- var customWidth = goog.style.getScrollbarWidth('otherScrollBar');
- assertEquals('Custom width should be 10', 10, customWidth);
- } catch (e) {
- expectedFailures.handleException(e);
- }
-}
-
-</script>
-
-</body>
-</html>