summaryrefslogtreecommitdiffstats
path: root/third_party/jstemplate/jstemplate_jsunit.html
blob: 45d4c16e9e845bd5881c87691a9131306fd23a26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!--
Copyright 2006 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
Fileoverview: JsUnit test runner page for jstemplates. 

Author: Steffen Meschkat (mesch@google.com)
-->
<html>
  <head>
    <title>jstemplate jsunit tests</title>
    <script src="jsunit/app/jsUnitCore.js"></script>
    <script src="util.js"></script>
    <script src="jsevalcontext.js"></script>
    <script src="jstemplate.js"></script>
    <script src="jstemplate_unittest.js"></script>
  </head>
  <body>

<!-- jsselect, jscontent, $this -->
<div id="t1">
  <div jsselect="items" jscontent="$this"></div>
</div>

<!-- jsdisplay -->
<div id="t2">
  <div jsdisplay="display">display</div>
</div>
<div id="t2a">
  <div jsdisplay="this.id == showId" id="x">x</div>
</div>

<!-- variables, jsvalues -->
<div id="t3" jsvalues="$href:'http://maps.google.com/'">
  <a href="http://www.google.com/" id="t3a"
  jsvalues="href:$href;.foo.bar.baz:$href;.style.backgroundColor:'red';.bar:$href">link here</a>
</div>

<div id="testJseval1" jseval="callback1()"></div>
<div id="testJseval2" jseval="callback1();callback2();"></div>

<!-- transclude -->
<div id="parent">
  <div id="t4" transclude="t4a"></div>
</div>
<div id="t4a" jsvalues="$href:'http://maps.google.com/'">
  <a href="http://www.google.com/" jsvalues="href:$href">link here</a>
</div>

<!-- scalar values as context -->
<div id="testScalarContext">
  <div jscontent="$this"></div>
</div>
  </body>
</html>