jdk/test/javax/script/Test2.js
author mfang
Wed, 17 Aug 2011 14:18:26 -0700
changeset 10294 8fcdae2a7ec7
parent 2 90ce3da70b43
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
if (Testobj.getVal() != 'Hello World') {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
    throw "unexpected value";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
Testobj = "a string";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
if (Testobj.getVal != undefined ||
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
    Testobj != 'a string') {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
    throw "can' change Testobj?";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
}