describe("Core — Informative", function () { var MAXOUT = 5000 , basicConfig = { editors: [{ name: "Robin Berjon" }] , specStatus: "WD" }; it("should process informative sections", function () { var doc; runs(function () { makeRSDoc({ config: basicConfig , body: $("

TITLE

") }, function (rsdoc) { doc = rsdoc; }); }); waitsFor(function () { return doc; }, MAXOUT); runs(function () { var $sec = $("div.informative, section.informative", doc); expect($sec.find("p").length).toEqual(1); expect($sec.find("p em").length).toEqual(1); expect($sec.find("p em").text()).toEqual("This section is non-normative."); flushIframes(); }); }); });