From 06d4b72dd9b4b8d4850dca89abd6f0db40238281 Mon Sep 17 00:00:00 2001 From: Malte Ubl Date: Fri, 29 Jan 2016 16:12:57 -0800 Subject: [PATCH] amp-embed now validates. --- test/integration/test-example-validation.js | 1 - test/integration/test-released.js | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/integration/test-example-validation.js b/test/integration/test-example-validation.js index 7e900275a9f0..73120bf091e3 100644 --- a/test/integration/test-example-validation.js +++ b/test/integration/test-example-validation.js @@ -63,7 +63,6 @@ describe('example', function() { */ const errorWhitelist = [ /invalid value \'.\/viewer-integr.js\'/, - /amp-embed/ ]; const usedWhitelist = []; diff --git a/test/integration/test-released.js b/test/integration/test-released.js index 2ee08394887e..4b630f4b6f42 100644 --- a/test/integration/test-released.js +++ b/test/integration/test-released.js @@ -33,10 +33,9 @@ function runTest(shouldKillPolyfillableApis) { if (shouldKillPolyfillableApis) { win.Promise = undefined; } - }) - .then(f => { - fixture = f; - }); + }).then(f => { + fixture = f; + }); }); // There is really weird behavior when running this test in FF in @@ -74,7 +73,7 @@ function checkGlobalScope(win) { // Checks that we don't leak certain symbols to the global scope. // This could happen if we do not wrap all our code in a closure. const commonSymbols = [ - '$', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'x', 'z', '_', 'log']; + '$', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'x', 'z', '_', 'log']; expect(win).to.not.include.keys(commonSymbols); expect(win).to.not.include.keys(commonSymbols.map(symbol => { return symbol.toUpperCase();