File: style.bt

package info (click to toggle)
tk-html3 3.0~fossil20110109-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,644 kB
  • ctags: 5,882
  • sloc: ansic: 48,994; tcl: 26,030; sh: 1,190; yacc: 161; makefile: 24
file content (33 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (5)
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

#------------------------------------------------------------------------
# This is a "warm-body" test for the events module.
#
do_browser_test style.1 -timeout 10000000 -html {
  <BODY>
    <DIV id="div">
    </DIV>

} -javascript {
  var div = document.getElementById("div");
  return div.style.borderTopWidth
} -expected ""

do_browser_test style.2 -timeout 10000000 -html {
  <BODY>
    <DIV id="div" style="border-top-width: 22px;">
    </DIV>

} -javascript {
  var div = document.getElementById("div");
  return div.style.borderTopWidth
} -expected 22px

do_browser_test style.3 -timeout 10000000 -javascript {
  return parseInt("")
} -expected NaN
do_browser_test style.4 -timeout 10000000 -javascript {
  var b = 8911
  b = b - parseInt("")
  return b
} -expected NaN