describe("Core - Section References", function () { var MAXOUT = 5000 , basicConfig = { editors: [{ name: "Robin Berjon" }] , specStatus: "WD" }; it("should have produced the section reference", function () { var doc; runs(function () { makeRSDoc({ config: basicConfig, body: "

ONE

" }, function (rsdoc) { doc = rsdoc; }); }); waitsFor(function () { return doc; }, MAXOUT); runs(function () { var $one = $("#ONE", doc) , $two = $("#TWO", doc) , tit = $one.find("> :first-child").text() ; expect($two.find("a").text()).toEqual("section " + tit); flushIframes(); }); }); });