diff options
Diffstat (limited to 'contexts/data/lib/closure-library/closure/goog/ui/drilldownrow_test.html')
-rw-r--r-- | contexts/data/lib/closure-library/closure/goog/ui/drilldownrow_test.html | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/contexts/data/lib/closure-library/closure/goog/ui/drilldownrow_test.html b/contexts/data/lib/closure-library/closure/goog/ui/drilldownrow_test.html deleted file mode 100644 index 0de92a1..0000000 --- a/contexts/data/lib/closure-library/closure/goog/ui/drilldownrow_test.html +++ /dev/null @@ -1,92 +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. - -Author: nicksantos@google.com (Nick Santos) ---> -<head> -<title>DrilldownRow Tests</title> -<script type="text/javascript" src="../base.js"></script> -<script> -goog.require('goog.dom'); -goog.require('goog.ui.DrilldownRow'); -goog.require('goog.testing.jsunit'); -</script> - -<style type="text/css"> - -.toggle { - cursor: pointer; - cursor: hand; - background-repeat: none; - background-position: right; -} - -tr.goog-drilldown-expanded .toggle { - background-image: url('../images/minus.png'); -} - -tr.goog-drilldown-collapsed .toggle { - background-image: url('../images/plus.png'); -} - -tr.goog-drilldown-hover td { - background-color: #CCCCFF; -} - -td { - background-color: white; -} - -</style> -</head> - -<body> -<table id=table style="background-color: silver"> - <tr> - <th>Column Head</th> - <th>Second Head</th> - </tr> - <tr id=firstRow> - <td>First row</td> - <td>Second column</td> - </tr> -</table> -</body> - -<script type="text/javascript"> - -function testMakeRows() { - var ff = goog.dom.getElement('firstRow'); - var d = new goog.ui.DrilldownRow({}); - var d1 = new goog.ui.DrilldownRow( - {html: '<tr><td>Second row</td><td>Second column</td></tr>'} - ); - var d2 = new goog.ui.DrilldownRow( - {html: '<tr><td>Third row</td><td>Second column</td></tr>'} - ); - var d21 = new goog.ui.DrilldownRow( - {html: '<tr><td>Fourth row</td><td>Second column</td></tr>'} - ); - var d22 = new goog.ui.DrilldownRow(goog.ui.DrilldownRow.sampleProperties); - d.decorate(ff); - d.addChild(d1, true); - d.addChild(d2, true); - d2.addChild(d21, true); - d2.addChild(d22, true); - - assertThrows(function() { - d.findIndex(); - }); - - assertEquals(0, d1.findIndex()); - assertEquals(1, d2.findIndex()); -} - - -</script> -</html> |