123456789101112131415161718192021222324252627282930313233 |
- describe("Simple bundle", function() {
- beforeEach(function() {
- this.ifr = document.createElement("iframe");
- document.body.append(this.ifr);
- });
- afterEach(function() {
- this.ifr.remove();
- });
- it("loads transpiled modules", function(done) {
- window.addEventListener("message", function l(ev) {
- if (ev.data === "a") {
- window.removeEventListener("message", l);
- done();
- }
- });
- this.ifr.src = "/base/tests/fixtures/simple-bundle/build/runner.html";
- });
- });
|