From 9cb124ed00aad8ac47690e31ad0bb8c3c365663d Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Mon, 4 Mar 2019 18:30:51 +0100 Subject: Build: Update jsdom; migrate a test with Symbol polyfill to an iframe test So far, we've been testing that jQuery element iteration works with polyfilled Symbol & transpiled for-of via a Node test with jsdom with the Symbol global removed. Unfortunately, jsdom now requires Symbol to be present for its internal functionality so such a test is no longer possible. Instead, it's been migrated to an iframe test with transpiled JavaScript. This PR also enables us to use ECMAScript 2017 or newer in Node.js code. Closes gh-4305 --- test/data/core/jquery-iterability-transpiled-es6.js | 14 ++++++++++++++ test/data/core/jquery-iterability-transpiled.html | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 test/data/core/jquery-iterability-transpiled-es6.js create mode 100644 test/data/core/jquery-iterability-transpiled.html (limited to 'test/data') diff --git a/test/data/core/jquery-iterability-transpiled-es6.js b/test/data/core/jquery-iterability-transpiled-es6.js new file mode 100644 index 000000000..0c3bda624 --- /dev/null +++ b/test/data/core/jquery-iterability-transpiled-es6.js @@ -0,0 +1,14 @@ +/* global startIframeTest */ + +jQuery( function() { + "use strict"; + + var elem = jQuery( "
" ); + var result = ""; + var i; + for ( i of elem ) { + result += i.nodeName; + } + + startIframeTest( result ); +} ); diff --git a/test/data/core/jquery-iterability-transpiled.html b/test/data/core/jquery-iterability-transpiled.html new file mode 100644 index 000000000..69ac18252 --- /dev/null +++ b/test/data/core/jquery-iterability-transpiled.html @@ -0,0 +1,14 @@ + + + + + jQuery objects transpiled iterability test page + + + + + + +

jQuery objects transpiled iterability test page

+ + -- cgit v1.2.3