aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
Diffstat (limited to 'test/data')
-rw-r--r--test/data/core/jquery-iterability-transpiled-es6.js14
-rw-r--r--test/data/core/jquery-iterability-transpiled.html14
2 files changed, 28 insertions, 0 deletions
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( "<div></div><span></span><a></a>" );
+ 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 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>jQuery objects transpiled iterability test page</title>
+ <script src="../../../node_modules/core-js/client/core.min.js"></script>
+ <script src="../../jquery.js"></script>
+ <script src="../iframeTest.js"></script>
+ <script src="jquery-iterability-transpiled.js"></script>
+</head>
+<body>
+ <p>jQuery objects transpiled iterability test page</p>
+</body>
+</html>