OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE> | |
arv (Not doing code reviews)
2014/02/10 14:58:15
<!DOCTYPE html>
What you wrote still puts the doc
haraken
2014/02/17 11:26:29
Done.
| |
2 <html> | |
3 <head> | |
4 <script src="../../resources/js-test.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 var div = document.createElement("div"); | |
9 shouldBeFalse('div.hasOwnProperty("id")'); | |
10 shouldBeTrue('div.__proto__.__proto__.__proto__.hasOwnProperty("id")'); | |
arv (Not doing code reviews)
2014/02/10 14:58:15
Next time, please inspect the whole property descr
haraken
2014/02/17 11:26:29
Done.
| |
11 shouldThrow('xhr = new XMLHttpRequest(); xhr.__proto__ = HTMLDivElement.prototyp e; xhr.id'); | |
12 shouldThrow('obj = Object.create(div); obj.id'); | |
arv (Not doing code reviews)
2014/02/10 14:58:15
A better test is to extract the getters and setter
haraken
2014/02/17 11:26:29
Done.
| |
13 </script> | |
14 </body> | |
15 </html> | |
OLD | NEW |