示例#1
0
文件: dloc-test.ts 项目: lddubeau/wed
 it("returns undefined if not in a root", () => {
   assert.isUndefined(findRoot(defined($root.parent()[0])));
 });
示例#2
0
文件: dloc-test.ts 项目: lddubeau/wed
 it("marks the root", () => {
   assert.equal(findRoot(root), rootObj);
 });
示例#3
0
文件: dloc-test.ts 项目: lddubeau/wed
 it("finds the root", () => {
   assert.equal(findRoot(defined($(".p")[0])), rootObj);
 });