File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,6 @@ class FastNode<NodeClass:IFastNode<NodeClass>> implements IFastNode<NodeClass>
126
126
127
127
public function insertBefore (newChild : NodeClass , refChild : NodeClass ): Void
128
128
{
129
- if (refChild .parentNode != cast (this ))
130
- {
131
- throw ' not a child node' ;
132
- }
133
129
134
130
if (firstChild == null || refChild == null )
135
131
{
Original file line number Diff line number Diff line change @@ -22,13 +22,6 @@ class FastNodeTest extends BuddySuite {
22
22
childNode .parentNode .should .be (null );
23
23
parentNode .firstChild .should .be (null );
24
24
});
25
- it (' should throw if not a child' , function () {
26
- var parentNode = new TestNode ();
27
- var anotherNode = new TestNode ();
28
-
29
- parentNode .removeChild .bind (anotherNode )
30
- .should .throwValue (' not a child node' );
31
- });
32
25
});
33
26
34
27
describe (' #appendChild' , function () {
@@ -61,15 +54,6 @@ class FastNodeTest extends BuddySuite {
61
54
firstChildNode .nextSibling .should .be (null );
62
55
firstChildNode .previousSibling .should .be (childNode );
63
56
});
64
-
65
- it (' should throw if ref node is not a child' , function () {
66
- var parentNode = new TestNode ();
67
- var childNode = new TestNode ();
68
- var anotherNode = new TestNode ();
69
-
70
- parentNode .insertBefore .bind (childNode , anotherNode )
71
- .should .throwValue (' not a child node' );
72
- });
73
57
});
74
58
});
75
59
}
You can’t perform that action at this time.
0 commit comments