~ubuntu-branches/debian/sid/tk-html3/sid

« back to all changes in this revision

Viewing changes to tests/node.bt

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2012-03-02 18:45:00 UTC
  • Revision ID: package-import@ubuntu.com-20120302184500-np17d7d6gd1jedj0
Tags: upstream-3.0~fossil20110109
ImportĀ upstreamĀ versionĀ 3.0~fossil20110109

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
do_browser_test node.1 -javascript {
 
4
  return Node.ELEMENT_NODE
 
5
}
 
6
 
 
7
do_browser_test node.2 -javascript {
 
8
  Node.prop = "hello"
 
9
  return Node.prop
 
10
}
 
11
 
 
12
# This test does not work. Firefox allows the Node.ELEMENT_NODE
 
13
# constant to be overwritten, whereas Hv3 throws an exception.
 
14
#
 
15
# ::browsertest::do_test node.3 -timeout 10000000 -javascript {
 
16
#   Node.ELEMENT_NODE = "hello"
 
17
#   return Node.ELEMENT_NODE
 
18
# } -expected hello
 
19
 
 
20
do_browser_test node.3 -javascript {
 
21
  try {
 
22
    document.body.nodeType = 10
 
23
  } catch (e) {
 
24
    return e
 
25
  }
 
26
  return ""
 
27
}
 
28
 
 
29
do_browser_test node.4 -html {<body>} -javascript {
 
30
  return "" + document.body.ELEMENT_NODE
 
31
}
 
32