Unreviewed, rolling out r94781.
[WebKit-https.git] / LayoutTests / fast / dom / Element / script-tests / contains-method.js
1 description(
2 'This test checks behavior of Element.contains. <div id="test1">[test1 <span id="test2">[test 2]</span>]</div>'
3 );
4
5 var test1 = document.getElementById('test1');
6 var test1TextChild = document.getElementById('test1').firstChild;
7 var test2 = document.getElementById('test2');
8
9 shouldBeUndefined("document.contains");
10 shouldBeTrue("test1.contains(test2)");
11 shouldBeFalse("test1.contains(test1TextChild)");
12 shouldBeFalse("test1.contains(123)");
13 shouldBeFalse("test1.contains(null)");
14
15 var successfullyParsed = true;