Skip to content

Instantly share code, notes, and snippets.

@usergenic
Created April 23, 2018 19:07
Show Gist options
  • Select an option

  • Save usergenic/5d0f10fca8122564faa6eb595e449cd5 to your computer and use it in GitHub Desktop.

Select an option

Save usergenic/5d0f10fca8122564faa6eb595e449cd5 to your computer and use it in GitHub Desktop.
CI fail on node 6 for master branch
travis_fold:start:worker_info
Worker information
hostname: e5edd65d-4d50-4b4d-8760-1c3e5eef61d7@1.production-1-worker-org-a-2-gce
version: v3.6.0 https://github.com/travis-ci/worker/tree/170b2a0bb43234479fd1911ba9e4dbcc36dadfad
instance: travis-job-c3a4033a-c0e8-43c0-8225-5412570e1089 travis-ci-garnet-trusty-1512502259-986baf0 (via amqp)
startup: 26.943220084s
travis_fold:end:worker_info
mode of ‘/usr/local/clang-5.0.0/bin’ changed from 0777 (rwxrwxrwx) to 0775 (rwxrwxr-x)
travis_fold:start:system_info
Build system information
Build language: node_js
Build group: stable
Build dist: trusty
Build id: 369368966
Job id: 369368969
Runtime kernel version: 4.4.0-101-generic
travis-build version: e0f4abce4
Build image provisioning date and time
Tue Dec 5 19:58:13 UTC 2017
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Cookbooks Version
7c2c6a6 https://github.com/travis-ci/travis-cookbooks/tree/7c2c6a6
git version
git version 2.15.1
bash version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
gcc version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
docker version
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:38 2017
OS/Arch: linux/amd64
Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:41:20 2017
OS/Arch: linux/amd64
Experimental: false
clang version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-5.0.0/bin
jq version
jq-1.5
bats version
Bats 0.4.0
shellcheck version
0.4.6
shfmt version
v2.0.0
ccache version
ccache version 3.1.9
Copyright (C) 2002-2007 Andrew Tridgell
Copyright (C) 2009-2011 Joel Rosdahl
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
version.
cmake version
cmake version 3.9.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
heroku version
heroku-cli/6.14.39-addc925 (linux-x64) node-v9.2.0
imagemagick version
Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org
md5deep version
4.2
mercurial version
Mercurial Distributed SCM (version 4.2.2)
(see https://mercurial-scm.org for more information)
Copyright (C) 2005-2017 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
mysql version
mysql Ver 14.14 Distrib 5.6.33, for debian-linux-gnu (x86_64) using EditLine wrapper
openssl version
OpenSSL 1.0.1f 6 Jan 2014
packer version
Packer v1.0.2
Your version of Packer is out of date! The latest version
is 1.1.2. You can update by downloading from www.packer.io
postgresql client version
psql (PostgreSQL) 9.6.6
ragel version
Ragel State Machine Compiler version 6.8 Feb 2013
Copyright (c) 2001-2009 by Adrian Thurston
subversion version
svn, version 1.8.8 (r1568071)
compiled Aug 10 2017, 17:20:39 on x86_64-pc-linux-gnu
Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- using serf 1.3.3
- handles 'http' scheme
- handles 'https' scheme
sudo version
Sudo version 1.8.9p5
Configure options: --prefix=/usr -v --with-all-insults --with-pam --with-fqdn --with-logging=syslog --with-logfac=authpriv --with-env-editor --with-editor=/usr/bin/editor --with-timeout=15 --with-password-timeout=0 --with-passprompt=[sudo] password for %p: --without-lecture --with-tty-tickets --disable-root-mailer --enable-admin-flag --with-sendmail=/usr/sbin/sendmail --with-timedir=/var/lib/sudo --mandir=/usr/share/man --libexecdir=/usr/lib/sudo --with-sssd --with-sssd-lib=/usr/lib/x86_64-linux-gnu --with-selinux
Sudoers policy plugin version 1.8.9p5
Sudoers file grammar version 43
Sudoers path: /etc/sudoers
Authentication methods: 'pam'
Syslog facility if syslog is being used for logging: authpriv
Syslog priority to use when user authenticates successfully: notice
Syslog priority to use when user authenticates unsuccessfully: alert
Send mail if the user is not in sudoers
Use a separate timestamp for each user/tty combo
Lecture user the first time they run sudo
Root may run sudo
Allow some information gathering to give useful error messages
Require fully-qualified hostnames in the sudoers file
Visudo will honor the EDITOR environment variable
Set the LOGNAME and USER environment variables
Length at which to wrap log file lines (0 for no wrap): 80
Authentication timestamp timeout: 15.0 minutes
Password prompt timeout: 0.0 minutes
Number of tries to enter a password: 3
Umask to use or 0777 to use user's: 022
Path to mail program: /usr/sbin/sendmail
Flags for mail program: -t
Address to send mail to: root
Subject line for mail messages: *** SECURITY information for %h ***
Incorrect password message: Sorry, try again.
Path to authentication timestamp dir: /var/lib/sudo
Default password prompt: [sudo] password for %p:
Default user to run commands as: root
Value to override user's $PATH with: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Path to the editor for use by visudo: /usr/bin/editor
When to require a password for 'list' pseudocommand: any
When to require a password for 'verify' pseudocommand: all
File descriptors >= 3 will be closed before executing a command
Environment variables to check for sanity:
TZ
TERM
LINGUAS
LC_*
LANGUAGE
LANG
COLORTERM
Environment variables to remove:
RUBYOPT
RUBYLIB
PYTHONUSERBASE
PYTHONINSPECT
PYTHONPATH
PYTHONHOME
TMPPREFIX
ZDOTDIR
READNULLCMD
NULLCMD
FPATH
PERL5DB
PERL5OPT
PERL5LIB
PERLLIB
PERLIO_DEBUG
JAVA_TOOL_OPTIONS
SHELLOPTS
GLOBIGNORE
PS4
BASH_ENV
ENV
TERMCAP
TERMPATH
TERMINFO_DIRS
TERMINFO
_RLD*
LD_*
PATH_LOCALE
NLSPATH
HOSTALIASES
RES_OPTIONS
LOCALDOMAIN
CDPATH
IFS
Environment variables to preserve:
JAVA_HOME
TRAVIS
CI
DEBIAN_FRONTEND
XAUTHORIZATION
XAUTHORITY
PS2
PS1
PATH
LS_COLORS
KRB5CCNAME
HOSTNAME
HOME
DISPLAY
COLORS
Locale to use while parsing sudoers: C
Directory in which to store input/output logs: /var/log/sudo-io
File in which to store the input/output log: %{seq}
Add an entry to the utmp/utmpx file when allocating a pty
PAM service name to use
PAM service name to use for login shells
Create a new PAM session for the command to run in
Maximum I/O log sequence number: 0
Local IP address and netmask pairs:
10.240.0.28/255.255.255.255
172.17.0.1/255.255.0.0
Sudoers I/O plugin version 1.8.9p5
gzip version
gzip 1.6
Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Jean-loup Gailly.
zip version
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Info-ZIP.
Currently maintained by E. Gordon. Please send bug reports to
the authors using the web page at www.info-zip.org; see README for details.
Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
as of above date; see http://www.info-zip.org/ for other sites.
Compiled with gcc 4.8.2 for Unix (Linux ELF) on Oct 21 2013.
Zip special compilation options:
USE_EF_UT_TIME (store Universal Time)
BZIP2_SUPPORT (bzip2 library version 1.0.6, 6-Sept-2010)
bzip2 code and library copyright (c) Julian R Seward
(See the bzip2 license for terms of use)
SYMLINK_SUPPORT (symbolic links supported)
LARGE_FILE_SUPPORT (can read and write large files on file system)
ZIP64_SUPPORT (use Zip64 to store large files in archives)
UNICODE_SUPPORT (store and read UTF-8 Unicode paths)
STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field)
UIDGID_NOT_16BIT (old Unix 16-bit UID/GID extra field not used)
[encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3)
Encryption notice:
The encryption code of this program is not copyrighted and is
put in the public domain. It was originally written in Europe
and, to the best of our knowledge, can be freely distributed
in both source and object forms from any country, including
the USA under License Exception TSU of the U.S. Export
Administration Regulations (section 740.13(e)) of 6 June 2002.
Zip environment options:
ZIP: [none]
ZIPOPT: [none]
vim version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:43:18)
Included patches: 1-52
Extra patches: 8.0.0056
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu -ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
iptables version
iptables v1.4.21
curl version
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
wget version
GNU Wget 1.15 built on linux-gnu.
rsync version
rsync version 3.1.0 protocol version 31
gimme version
v1.2.0
nvm version
0.33.6
perlbrew version
/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.80
phpenv version
rbenv 1.1.1-25-g6aa70b6
rvm version
rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
default ruby version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
CouchDB version
couchdb 1.6.1
ElasticSearch version
5.5.0
Installed Firefox version
firefox 56.0.2
MongoDB version
MongoDB 3.4.10
PhantomJS version
2.1.1
Pre-installed PostgreSQL versions
9.2.24
9.3.20
9.4.15
9.5.10
9.6.6
RabbitMQ Version
3.6.14
Redis version
redis-server 4.0.6
riak version
2.2.3
Pre-installed Go versions
1.7.4
ant version
Apache Ant(TM) version 1.9.3 compiled on April 8 2014
mvn version
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /usr/local/maven-3.5.2
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family: "unix"
gradle version
------------------------------------------------------------
Gradle 4.0.1
------------------------------------------------------------
Build time: 2017-07-07 14:02:41 UTC
Revision: 38e5dc0f772daecca1d2681885d3d85414eb6826
Groovy: 2.4.11
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_151 (Oracle Corporation 25.151-b12)
OS: Linux 4.4.0-98-generic amd64
lein version
Leiningen 2.8.1 on Java 1.8.0_151 Java HotSpot(TM) 64-Bit Server VM
Pre-installed Node.js versions
v4.8.6
v6.12.0
v6.12.1
v8.9
v8.9.1
phpenv versions
system
5.6
* 5.6.32 (set by /home/travis/.phpenv/version)
7.0
7.0.25
7.1
7.1.11
hhvm
hhvm-stable
composer --version
Composer version 1.5.2 2017-09-11 16:59:25
Pre-installed Ruby versions
ruby-2.2.7
ruby-2.3.4
ruby-2.4.1
travis_fold:end:system_info

removed ‘/etc/apt/sources.list.d/basho_riak.list’
Network availability confirmed.
127.0.0.1 localhost nettuno travis vagrant
127.0.1.1 travis-job-c3a4033a-c0e8-43c0-8225-5412570e1089 travis-job-c3a4033a-c0e8-43c0-8225-5412570e1089 ip4-loopback trusty64
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
travis_fold:start:git.checkout
travis_time:start:0e016e0b
$ git clone --depth=50 --branch=master https://github.com/Polymer/tools.git Polymer/tools
Cloning into 'Polymer/tools'...
travis_time:end:0e016e0b:start=1524466094863773195,finish=1524466096016945990,duration=1153172795
$ cd Polymer/tools
$ git checkout -qf cbb1cbde428abe0289dfba941f8345e6c1e222a0
travis_fold:end:git.checkout
travis_fold:start:apt
Adding APT Sources (BETA)
$ export DEBIAN_FRONTEND=noninteractive
travis_time:start:00fbf3d0
$ curl -sSL "https://dl-ssl.google.com/linux/linux_signing_key.pub" | sudo -E apt-key add -
OK
travis_time:end:00fbf3d0:start=1524466096040000953,finish=1524466096522749672,duration=482748719
travis_time:start:25a3753a
$ echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list > /dev/null
travis_time:end:25a3753a:start=1524466096529512291,finish=1524466096543770445,duration=14258154
Installing APT Packages (BETA)
$ export DEBIAN_FRONTEND=noninteractive
travis_time:start:0a0f0873
$ sudo -E apt-get -yq update &>> ~/apt-get-update.log
travis_time:end:0a0f0873:start=1524466096551016323,finish=1524466099587657442,duration=3036641119
travis_time:start:1927332c
$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install google-chrome-stable
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libappindicator1 libdbusmenu-gtk4 libindicator7
Use 'sudo apt autoremove' to remove them.
Recommended packages:
libu2f-udev
The following packages will be upgraded:
google-chrome-stable
1 upgraded, 0 newly installed, 0 to remove and 180 not upgraded.
Need to get 52.2 MB of archives.
After this operation, 4,094 kB of additional disk space will be used.
Get:1 http://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 66.0.3359.117-1 [52.2 MB]
Fetched 52.2 MB in 1s (42.6 MB/s)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 93696 files and directories currently installed.)
Preparing to unpack .../google-chrome-stable_66.0.3359.117-1_amd64.deb ...
Unpacking google-chrome-stable (66.0.3359.117-1) over (62.0.3202.94-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Setting up google-chrome-stable (66.0.3359.117-1) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
travis_time:end:1927332c:start=1524466099593438500,finish=1524466110159288181,duration=10565849681
travis_fold:end:apt
travis_fold:start:install_firefox
$ export FIREFOX_SOURCE_URL='https://download.mozilla.org/?product=firefox-latest&lang=en-US&os=linux64'
Installing Firefox latest
travis_time:start:000eedbc
$ wget --no-verbose -O /tmp/firefox-latest.tar.bz2 $FIREFOX_SOURCE_URL
2018-04-23 06:48:30 URL:https://download-installer.cdn.mozilla.net/pub/firefox/releases/59.0.2/linux-x86_64/en-US/firefox-59.0.2.tar.bz2 [54151897/54151897] -> "/tmp/firefox-latest.tar.bz2" [1]
travis_time:end:000eedbc:start=1524466110173026832,finish=1524466110917156009,duration=744129177
$ export PATH=$HOME/firefox-latest/firefox:$PATH
travis_fold:end:install_firefox
$ firefox --version
Mozilla Firefox 59.0.2
Setting environment variables from .travis.yml
$ export SAUCE_USERNAME=[secure]
$ export SAUCE_ACCESS_KEY=[secure]
$ export TEST_COMMAND="run test:integration:parallel"
$ export MOCHA_TIMEOUT=120000
$ export PATH=./node_modules/.bin:$PATH
Updating nvm
travis_fold:start:nvm.install
travis_time:start:072fdba0
$ nvm install 6
Downloading and installing node v6.14.1...
Downloading https://nodejs.org/dist/v6.14.1/node-v6.14.1-linux-x64.tar.xz...
Computing checksum with sha256sum
Checksums matched!
Now using node v6.14.1 (npm v3.10.10)
travis_time:end:072fdba0:start=1524466134079965288,finish=1524466136963821215,duration=2883855927
travis_fold:end:nvm.install
$ node --version
v6.14.1
$ npm --version
3.10.10
$ nvm --version
0.33.8
travis_fold:start:install.1
travis_time:start:18aa6748
$ npm install
polymer-tools@ /home/travis/build/Polymer/tools
└─┬ lerna@2.10.2
├── async@1.5.2
├─┬ chalk@2.4.0
│ ├─┬ ansi-styles@3.2.1
│ │ └─┬ color-convert@1.9.1
│ │ └── color-name@1.1.3
│ ├── escape-string-regexp@1.0.5
│ └─┬ supports-color@5.4.0
│ └── has-flag@3.0.0
├─┬ cmd-shim@2.0.2
│ └─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
├─┬ columnify@1.5.4
│ ├─┬ strip-ansi@3.0.1
│ │ └── ansi-regex@2.1.1
│ └─┬ wcwidth@1.0.1
│ └─┬ defaults@1.0.3
│ └── clone@1.0.4
├── command-join@2.0.0
├─┬ conventional-changelog-cli@1.3.22
│ ├── add-stream@1.0.0
│ ├─┬ conventional-changelog@1.1.24
│ │ ├─┬ conventional-changelog-angular@1.6.6
│ │ │ ├─┬ compare-func@1.3.2
│ │ │ │ ├── array-ify@1.0.0
│ │ │ │ └─┬ dot-prop@3.0.0
│ │ │ │ └── is-obj@1.0.1
│ │ │ └── q@1.5.1
│ │ ├── conventional-changelog-atom@0.2.8
│ │ ├── conventional-changelog-codemirror@0.3.8
│ │ ├─┬ conventional-changelog-core@2.0.11
│ │ │ ├─┬ conventional-changelog-writer@3.0.9
│ │ │ │ ├─┬ handlebars@4.0.11
│ │ │ │ │ ├─┬ optimist@0.6.1
│ │ │ │ │ │ └── wordwrap@0.0.3
│ │ │ │ │ ├─┬ source-map@0.4.4
│ │ │ │ │ │ └── amdefine@1.0.1
│ │ │ │ │ └─┬ uglify-js@2.8.29
│ │ │ │ │ ├── source-map@0.5.7
│ │ │ │ │ ├── uglify-to-browserify@1.0.2
│ │ │ │ │ └─┬ yargs@3.10.0
│ │ │ │ │ ├── camelcase@1.2.1
│ │ │ │ │ ├─┬ cliui@2.1.0
│ │ │ │ │ │ ├─┬ center-align@0.1.3
│ │ │ │ │ │ │ ├─┬ align-text@0.1.4
│ │ │ │ │ │ │ │ ├─┬ kind-of@3.2.2
│ │ │ │ │ │ │ │ │ └── is-buffer@1.1.6
│ │ │ │ │ │ │ │ ├── longest@1.0.1
│ │ │ │ │ │ │ │ └── repeat-string@1.6.1
│ │ │ │ │ │ │ └── lazy-cache@1.0.4
│ │ │ │ │ │ ├── right-align@0.1.3
│ │ │ │ │ │ └── wordwrap@0.0.2
│ │ │ │ │ └── window-size@0.1.0
│ │ │ │ ├── json-stringify-safe@5.0.1
│ │ │ │ └── split@1.0.1
│ │ │ ├── dateformat@3.0.3
│ │ │ ├─┬ get-pkg-repo@1.4.0
│ │ │ │ ├─┬ meow@3.7.0
│ │ │ │ │ ├─┬ camelcase-keys@2.1.0
│ │ │ │ │ │ └── camelcase@2.1.1
│ │ │ │ │ ├── map-obj@1.0.1
│ │ │ │ │ ├── minimist@1.2.0
│ │ │ │ │ ├─┬ redent@1.0.0
│ │ │ │ │ │ ├── indent-string@2.1.0
│ │ │ │ │ │ └── strip-indent@1.0.1
│ │ │ │ │ └── trim-newlines@1.0.0
│ │ │ │ └── parse-github-repo-url@1.4.1
│ │ │ ├─┬ git-remote-origin-url@2.0.0
��� │ │ │ ├── gitconfiglocal@1.0.0
│ │ │ │ └── pify@2.3.0
│ │ │ └─┬ read-pkg@1.1.0
│ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ ├── parse-json@2.2.0
│ │ │ │ ├── pify@2.3.0
│ │ │ │ └─┬ strip-bom@2.0.0
│ │ │ │ └── is-utf8@0.2.1
│ │ │ └── path-type@1.1.0
│ │ ├── conventional-changelog-ember@0.3.12
│ │ ├── conventional-changelog-eslint@1.0.9
│ │ ├── conventional-changelog-express@0.3.6
│ │ ├── conventional-changelog-jquery@0.1.0
│ │ ├── conventional-changelog-jscs@0.1.0
│ │ ├── conventional-changelog-jshint@0.3.8
│ │ └── conventional-changelog-preset-loader@1.1.8
│ ├─┬ meow@4.0.0
│ │ ├─┬ camelcase-keys@4.2.0
│ │ │ ├── camelcase@4.1.0
│ │ │ ├── map-obj@2.0.0
│ │ │ └── quick-lru@1.1.0
│ │ ├─┬ decamelize-keys@1.1.0
│ │ │ └── map-obj@1.0.1
│ │ ├─┬ loud-rejection@1.6.0
│ │ │ └─┬ currently-unhandled@0.4.1
│ │ │ └── array-find-index@1.0.2
│ │ ├── minimist@1.2.0
│ │ ├─┬ minimist-options@3.0.2
│ │ │ └── arrify@1.0.1
│ │ ├── read-pkg-up@3.0.0
│ │ ├─┬ redent@2.0.0
│ │ │ ├── indent-string@3.2.0
│ │ │ └── strip-indent@2.0.0
│ │ └── trim-newlines@2.0.0
│ └─┬ tempfile@1.1.1
│ ├── os-tmpdir@1.0.2
│ └── uuid@2.0.3
├─┬ conventional-recommended-bump@1.2.1
│ ├─┬ concat-stream@1.6.2
│ │ ├── buffer-from@1.0.0
│ │ ├─┬ readable-stream@2.3.6
│ │ │ ├── core-util-is@1.0.2
│ │ │ ├── isarray@1.0.0
│ │ │ ├── process-nextick-args@2.0.0
│ │ │ ├── string_decoder@1.1.1
│ │ │ └── util-deprecate@1.0.2
│ │ └── typedarray@0.0.6
│ ├─┬ conventional-commits-filter@1.1.6
│ │ ├── is-subset@0.1.1
│ │ └── modify-values@1.0.1
│ ├─┬ conventional-commits-parser@2.1.7
│ │ ├─┬ is-text-path@1.0.1
│ │ │ └── text-extensions@1.7.0
│ │ ├─┬ JSONStream@1.3.2
│ │ │ └── jsonparse@1.3.1
│ │ ├── split2@2.2.0
│ │ ├─┬ through2@2.0.3
│ │ │ └── xtend@4.0.1
│ │ └── trim-off-newlines@1.0.1
│ ├─┬ git-raw-commits@1.3.6
│ │ ├─┬ dargs@4.1.0
│ │ │ └── number-is-nan@1.0.1
│ │ └─┬ lodash.template@4.4.0
│ │ ├── lodash._reinterpolate@3.0.0
│ │ └── lodash.templatesettings@4.1.0
│ ├── git-semver-tags@1.3.6
│ ├─┬ meow@3.7.0
│ │ ├─┬ camelcase-keys@2.1.0
│ │ │ └── camelcase@2.1.1
│ │ ├── map-obj@1.0.1
│ │ ├── minimist@1.2.0
│ │ ├─┬ read-pkg-up@1.0.1
│ │ │ ├─┬ find-up@1.1.2
│ │ │ │ └── path-exists@2.1.0
│ │ │ └─┬ read-pkg@1.1.0
│ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ ├── parse-json@2.2.0
│ │ │ │ ├── pify@2.3.0
│ │ │ │ └── strip-bom@2.0.0
│ │ │ └── path-type@1.1.0
│ │ ├─┬ redent@1.0.0
│ │ │ ├─┬ indent-string@2.1.0
│ │ │ │ └─┬ repeating@2.0.1
│ │ │ │ └── is-finite@1.0.2
│ │ │ └─┬ strip-indent@1.0.1
│ │ │ └── get-stdin@4.0.1
│ │ └── trim-newlines@1.0.0
│ └── object-assign@4.1.1
├── dedent@0.7.0
├─┬ execa@0.8.0
│ ├─┬ cross-spawn@5.1.0
│ │ ├─┬ lru-cache@4.1.2
│ │ │ ├── pseudomap@1.0.2
│ │ │ └── yallist@2.1.2
│ │ ├─┬ shebang-command@1.2.0
│ │ │ └── shebang-regex@1.0.0
│ │ └─┬ which@1.3.0
│ │ └── isexe@2.0.0
│ ├── get-stream@3.0.0
│ ├── is-stream@1.1.0
│ ├─┬ npm-run-path@2.0.2
│ │ └── path-key@2.0.1
│ └── strip-eof@1.0.0
├─┬ find-up@2.1.0
│ └─┬ locate-path@2.0.0
│ └─┬ p-locate@2.0.0
│ └─┬ p-limit@1.2.0
│ └── p-try@1.0.0
├─┬ fs-extra@4.0.3
│ ├── jsonfile@4.0.0
│ └── universalify@0.1.1
├── get-port@3.2.0
├─┬ glob@7.1.2
│ ├── fs.realpath@1.0.0
│ ├─┬ inflight@1.0.6
│ │ └── wrappy@1.0.2
│ ├── inherits@2.0.3
│ ├── once@1.4.0
│ └── path-is-absolute@1.0.1
├─��� glob-parent@3.1.0
│ ├─┬ is-glob@3.1.0
│ │ └── is-extglob@2.1.1
│ └── path-dirname@1.0.2
├─┬ globby@6.1.0
│ ├─┬ array-union@1.0.2
│ │ └── array-uniq@1.0.3
│ ├── pify@2.3.0
│ └─┬ pinkie-promise@2.0.1
│ └── pinkie@2.0.4
├── graceful-fs@4.1.11
├── hosted-git-info@2.6.0
├─┬ inquirer@3.3.0
│ ├── ansi-escapes@3.1.0
│ ├─┬ cli-cursor@2.1.0
│ │ └─┬ restore-cursor@2.0.0
│ │ └── onetime@2.0.1
│ ├── cli-width@2.2.0
│ ├─┬ external-editor@2.2.0
│ │ ├── chardet@0.4.2
│ │ ├─┬ iconv-lite@0.4.21
│ │ │ └── safer-buffer@2.1.2
│ │ └── tmp@0.0.33
│ ├── figures@2.0.0
│ ├── mute-stream@0.0.7
│ ├─┬ run-async@2.3.0
│ │ └── is-promise@2.1.0
│ ├── rx-lite@4.0.8
│ ├── rx-lite-aggregates@4.0.8
│ ├─┬ string-width@2.1.1
│ │ ├── is-fullwidth-code-point@2.0.0
│ │ └─┬ strip-ansi@4.0.0
│ │ └── ansi-regex@3.0.0
│ ├─┬ strip-ansi@4.0.0
│ │ └── ansi-regex@3.0.0
│ └── through@2.3.8
├─┬ is-ci@1.1.0
│ └── ci-info@1.1.3
├─┬ load-json-file@4.0.0
│ ├─┬ parse-json@4.0.0
│ │ ├─┬ error-ex@1.3.1
│ │ │ └── is-arrayish@0.2.1
│ │ └── json-parse-better-errors@1.0.2
│ ├── pify@3.0.0
│ └── strip-bom@3.0.0
├── lodash@4.17.5
├─┬ minimatch@3.0.4
│ └─┬ brace-expansion@1.1.11
│ ├── balanced-match@1.0.0
│ └── concat-map@0.0.1
├─┬ npmlog@4.1.2
│ ├─┬ are-we-there-yet@1.1.4
│ │ └── delegates@1.0.0
│ ├── console-control-strings@1.1.0
│ ├─┬ gauge@2.7.4
│ │ ├── aproba@1.2.0
│ │ ├── has-unicode@2.0.1
│ │ ├─┬ string-width@1.0.2
│ │ │ ├── code-point-at@1.1.0
│ │ │ └── is-fullwidth-code-point@1.0.0
│ │ └─┬ wide-align@1.1.2
│ │ └─┬ string-width@1.0.2
│ │ └── is-fullwidth-code-point@1.0.0
│ └── set-blocking@2.0.0
├── p-finally@1.0.0
├─┬ package-json@4.0.1
│ ├─┬ got@6.7.1
│ │ ├─┬ create-error-class@3.0.2
│ │ │ └── capture-stack-trace@1.0.0
│ │ ├── duplexer3@0.1.4
│ │ ├── is-redirect@1.0.0
│ │ ├── is-retry-allowed@1.1.0
│ │ ├── lowercase-keys@1.0.1
│ │ ├── timed-out@4.0.1
│ │ ├── unzip-response@2.0.1
│ │ └─┬ url-parse-lax@1.0.0
│ │ └── prepend-http@1.0.4
│ ├─┬ registry-auth-token@3.3.2
│ │ └─┬ rc@1.2.6
│ │ ├── deep-extend@0.4.2
│ │ ├── ini@1.3.5
│ │ ├── minimist@1.2.0
│ │ └── strip-json-comments@2.0.1
│ └── registry-url@3.1.0
├── path-exists@3.0.0
├── read-cmd-shim@1.0.1
├─┬ read-pkg@3.0.0
│ ├─┬ normalize-package-data@2.4.0
│ │ ├─┬ is-builtin-module@1.0.0
│ │ │ └── builtin-modules@1.1.1
│ │ └─┬ validate-npm-package-license@3.0.3
│ │ ├─┬ spdx-correct@3.0.0
│ │ │ └── spdx-license-ids@3.0.0
│ │ └─┬ spdx-expression-parse@3.0.0
│ │ └── spdx-exceptions@2.1.0
│ └── path-type@3.0.0
├── rimraf@2.6.2
├── safe-buffer@5.1.1
├── semver@5.5.0
├── signal-exit@3.0.2
├── slash@1.0.0
├─┬ strong-log-transformer@1.0.6
│ ├── byline@5.0.0
│ ├── duplexer@0.1.1
│ ├── minimist@0.1.0
│ └── moment@2.22.1
├─┬ temp-write@3.4.0
│ ├── make-dir@1.2.0
│ ├── temp-dir@1.0.0
│ └── uuid@3.2.1
├─┬ write-file-atomic@2.3.0
│ └── imurmurhash@0.1.4
├─┬ write-json-file@2.3.0
│ ├── detect-indent@5.0.0
│ └─┬ sort-keys@2.0.0
│ └── is-plain-obj@1.1.0
├── write-pkg@3.1.0
└─┬ yargs@8.0.2
├── camelcase@4.1.0
├─┬ cliui@3.2.0
│ ├─┬ string-width@1.0.2
│ │ └── is-fullwidth-code-point@1.0.0
│ └─┬ wrap-ansi@2.1.0
│ └─┬ string-width@1.0.2
│ └── is-fullwidth-code-point@1.0.0
├── decamelize@1.2.0
├── get-caller-file@1.0.2
├─┬ os-locale@2.1.0
│ ├── execa@0.7.0
│ ├─┬ lcid@1.0.0
│ │ └── invert-kv@1.0.0
│ └─┬ mem@1.1.0
│ └─��� mimic-fn@1.2.0
├─┬ read-pkg-up@2.0.0
│ └─┬ read-pkg@2.0.0
│ ├─┬ load-json-file@2.0.0
│ │ ├── parse-json@2.2.0
│ │ └── pify@2.3.0
│ └── path-type@2.0.0
├── require-directory@2.1.1
├── require-main-filename@1.0.1
├── which-module@2.0.0
├── y18n@3.2.1
└─┬ yargs-parser@7.0.0
└── camelcase@4.1.0
travis_time:end:18aa6748:start=1524466138550127710,finish=1524466153644115657,duration=15093987947
travis_fold:end:install.1
travis_fold:start:install.2
travis_time:start:22037448
$ npm run bootstrap
> polymer-tools@ bootstrap /home/travis/build/Polymer/tools
> lerna bootstrap
lerna info version 2.10.2
lerna info versioning independent
lerna info Bootstrapping 11 packages
lerna info lifecycle preinstall
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna WARN EREPLACE_EXIST @polymer/tools-common is already installed for polymer-cli. Replacing with symlink...
lerna WARN EREPLACE_EXIST polymer-analyzer is already installed for polymer-cli. Replacing with symlink...
lerna WARN EREPLACE_EXIST polymer-build is already installed for polymer-cli. Replacing with symlink...
lerna WARN EREPLACE_EXIST polymer-bundler is already installed for polymer-cli. Replacing with symlink...
lerna WARN EREPLACE_EXIST polymer-linter is already installed for polymer-cli. Replacing with symlink...
lerna WARN EREPLACE_EXIST polymer-project-config is already installed for polymer-cli. Replacing with symlink...
lerna WARN EREPLACE_EXIST polyserve is already installed for polymer-cli. Replacing with symlink...
lerna WARN EREPLACE_EXIST web-component-tester is already installed for polymer-cli. Replacing with symlink...
lerna WARN EREPLACE_EXIST polymer-analyzer is already installed for polymer-editor-service. Replacing with symlink...
lerna info lifecycle postinstall
lerna info lifecycle prepublish
lerna info lifecycle prepare
lerna success Bootstrapped 11 packages
travis_time:end:22037448:start=1524466153661413143,finish=1524466422990573075,duration=269329159932
travis_fold:end:install.2
travis_fold:start:install.3
travis_time:start:261e82f9
$ npm run build
> polymer-tools@ build /home/travis/build/Polymer/tools
> lerna run build --stream
lerna info version 2.10.2
lerna info versioning independent
polymer-analyzer: > polymer-analyzer@3.0.0-pre.24 build /home/travis/build/Polymer/tools/packages/analyzer
polymer-analyzer: > gulp build
browser-capabilities: > browser-capabilities@0.2.2 build /home/travis/build/Polymer/tools/packages/browser-capabilities
browser-capabilities: > rm -Rf lib/ && tsc
polymer-analyzer: [06:53:47] Using gulpfile ~/build/Polymer/tools/packages/analyzer/gulpfile.js
polymer-analyzer: [06:53:47] Starting 'compile'...
polymer-analyzer: [06:53:47] Starting 'json-schema'...
polymer-analyzer: [gulp-typescript] 2339 Property 'inplace' does not exist on type 'typeof "/home/travis/build/Polymer/tools/packages/analyzer/node_modules/stable/index"'.
polymer-analyzer: > file: src/model/warning.ts:
polymer-analyzer: > [285]  stable.inplace(replacements, (a, b) => {
polymer-analyzer: [gulp-typescript] 7006 Parameter 'a' implicitly has an 'any' type.
polymer-analyzer: > file: src/model/warning.ts:
polymer-analyzer: > [285]  stable.inplace(replacements, (a, b) => {
polymer-analyzer: [gulp-typescript] 7006 Parameter 'b' implicitly has an 'any' type.
polymer-analyzer: > file: src/model/warning.ts:
polymer-analyzer: > [285]  stable.inplace(replacements, (a, b) => {
polymer-analyzer: TypeScript: 3 semantic errors
polymer-analyzer: TypeScript: emit succeeded (with errors)
polymer-analyzer: [06:53:59] Finished 'json-schema' after 13 s
polymer-analyzer: [06:54:00] Finished 'compile' after 13 s
polymer-analyzer: [06:54:00] Starting 'build'...
polymer-analyzer: [06:54:00] Finished 'build' after 30 μs
polymer-bundler: > polymer-bundler@4.0.0-pre.5 build /home/travis/build/Polymer/tools/packages/bundler
polymer-bundler: > tsc
polymer-project-config: > polymer-project-config@3.13.0 build /home/travis/build/Polymer/tools/packages/project-config
polymer-project-config: > tsc && typescript-json-schema src/index.ts ProjectOptions --ignoreErrors -o lib/schema.json
polymer-editor-service: > polymer-editor-service@2.2.0 build /home/travis/build/Polymer/tools/packages/editor-service
polymer-editor-service: > tsc
polymer-build: > polymer-build@3.0.0-pre.13 build /home/travis/build/Polymer/tools/packages/build
polymer-build: > gulp build
polymer-linter: > polymer-linter@3.0.0-pre.7 build /home/travis/build/Polymer/tools/packages/linter
polymer-linter: > npm run clean && tsc
polymer-linter: > polymer-linter@3.0.0-pre.7 clean /home/travis/build/Polymer/tools/packages/linter
polymer-linter: > touch lib && rm -rf lib && mkdir lib
polymer-build: [06:54:17] Using gulpfile ~/build/Polymer/tools/packages/build/gulpfile.js
polymer-build: [06:54:17] Starting 'build'...
polymer-build: [06:54:17] Starting 'clean'...
polymer-build: [06:54:17] Finished 'clean' after 10 ms
polymer-build: [06:54:17] Starting 'compile'...
polymer-build: [06:54:17] Starting 'gen-babel-helpers-full'...
polymer-build: [06:54:21] Finished 'gen-babel-helpers-full' after 3.65 s
polymer-build: [06:54:21] Starting 'gen-babel-helpers-amd'...
polymer-build: [06:54:21] Finished 'gen-babel-helpers-amd' after 117 ms
polymer-build: [06:54:21] Starting 'gen-requirejs'...
polymer-build: [06:54:25] Finished 'gen-requirejs' after 4.19 s
polymer-build: [06:54:33] Finished 'compile' after 16 s
polymer-build: [06:54:33] Finished 'build' after 16 s
polyserve: > polyserve@0.27.6 build /home/travis/build/Polymer/tools/packages/polyserve
polyserve: > npm run clean && tsc
polyserve: > polyserve@0.27.6 clean /home/travis/build/Polymer/tools/packages/polyserve
polyserve: > rimraf lib
web-component-tester: > web-component-tester@6.6.0-pre.5 build /home/travis/build/Polymer/tools/packages/web-component-tester
web-component-tester: > tsc && gulp build
web-component-tester: [06:54:45] Using gulpfile ~/build/Polymer/tools/packages/web-component-tester/gulpfile.js
web-component-tester: [06:54:45] Starting 'build:typescript-server'...
web-component-tester: [06:54:45] Starting 'build:typescript-browser'...
web-component-tester: [06:54:45] Starting 'build:wct-browser-legacy:a11ySuite'...
web-component-tester: [06:54:45] Finished 'build:wct-browser-legacy:a11ySuite' after 164 ms
web-component-tester: [06:54:52] Finished 'build:typescript-server' after 7.51 s
web-component-tester: [06:54:52] Finished 'build:typescript-browser' after 7.46 s
web-component-tester: [06:54:52] Starting 'build:browser'...
web-component-tester: [06:54:52] Starting 'build:wct-browser-legacy:browser'...
web-component-tester: [06:54:53] Finished 'build:browser' after 465 ms
web-component-tester: [06:54:53] Finished 'build:wct-browser-legacy:browser' after 463 ms
web-component-tester: [06:54:53] Starting 'build:wct-browser-legacy'...
web-component-tester: [06:54:53] Finished 'build:wct-browser-legacy' after 3.29 μs
web-component-tester: [06:54:53] Starting 'build'...
web-component-tester: [06:54:53] Finished 'build' after 5.03 μs
polymer-cli: > polymer-cli@1.7.0-pre.13 build /home/travis/build/Polymer/tools/packages/cli
polymer-cli: > gulp build
polymer-cli: [06:54:54] Using gulpfile ~/build/Polymer/tools/packages/cli/gulpfile.js
polymer-cli: [06:54:54] Starting 'build'...
polymer-cli: [06:54:54] Starting 'clean'...
polymer-cli: [06:54:54] Finished 'clean' after 3.12 ms
polymer-cli: [06:54:54] Starting 'compile'...
polymer-cli: [06:54:54] Starting 'copy'...
polymer-cli: [06:54:55] Finished 'copy' after 205 ms
polymer-cli: [06:54:59] Finished 'compile' after 4.33 s
polymer-cli: [06:54:59] Finished 'build' after 4.33 s
lerna success run Ran npm script 'build' in packages:
lerna success - polymer-analyzer
lerna success - browser-capabilities
lerna success - polymer-build
lerna success - polymer-bundler
lerna success - polymer-cli
lerna success - polymer-editor-service
lerna success - polymer-linter
lerna success - polyserve
lerna success - polymer-project-config
lerna success - web-component-tester
travis_time:end:261e82f9:start=1524466422997359077,finish=1524466499141611493,duration=76144252416
travis_fold:end:install.3
travis_fold:start:sauce_connect.start
Starting Sauce Connect
travis_time:start:1e5d12d0
$ travis_start_sauce_connect
Using temp dir /tmp/sc.8oGO
/tmp/sc.8oGO ~/build/Polymer/tools
Downloading Sauce Connect
Extracting Sauce Connect
Waiting for Sauce Connect readyfile
23 Apr 06:54:59 - Sauce Connect 4.4.12, build 3905 74cd761 -dirty
23 Apr 06:54:59 - Using CA certificate bundle /etc/ssl/certs/ca-certificates.crt.
23 Apr 06:54:59 - Using CA certificate verify path /etc/ssl/certs.
23 Apr 06:54:59 - Starting up; pid 6950
23 Apr 06:54:59 - Command line arguments: sc-4.4.12-linux/bin/sc -i 625.3 -f sauce-connect-ready-4831 -l /home/travis/sauce-connect.log
23 Apr 06:54:59 - Log file: /home/travis/sauce-connect.log
23 Apr 06:54:59 - Pid file: /tmp/sc_client-625.3.pid
23 Apr 06:54:59 - Timezone: UTC GMT offset: 0h
23 Apr 06:54:59 - Using no proxy for connecting to Sauce Labs REST API.
23 Apr 06:55:01 - Started scproxy on port 40996.
23 Apr 06:55:01 - Please wait for 'you may start your tests' to start your tests.
23 Apr 06:55:22 - Secure remote tunnel VM provisioned.
23 Apr 06:55:22 - Tunnel ID: 5e36740c0547440aa1670656ac28d6bc
23 Apr 06:55:22 - Using no proxy for connecting to tunnel VM.
23 Apr 06:55:22 - Starting Selenium listener...
23 Apr 06:55:22 - Establishing secure TLS connection to tunnel...
23 Apr 06:55:22 - Selenium listener started on port 4445.
23 Apr 06:55:23 - Sauce Connect is up, you may start your tests.
~/build/Polymer/tools
travis_time:end:1e5d12d0:start=1524466499151874976,finish=1524466523540462136,duration=24388587160
travis_fold:end:sauce_connect.start
travis_time:start:0d240a24
$ xvfb-run npm $TEST_COMMAND
> polymer-tools@ test:integration:parallel /home/travis/build/Polymer/tools
> lerna run test:integration --stream --parallel
lerna info version 2.10.2
lerna info versioning independent
lerna info run in 2 package(s): npm run test:integration
polymer-cli: > polymer-cli@1.7.0-pre.13 test:integration /home/travis/build/Polymer/tools/packages/cli
polymer-cli: > gulp test:integration
web-component-tester: > web-component-tester@6.6.0-pre.5 test:integration /home/travis/build/Polymer/tools/packages/web-component-tester
web-component-tester: > gulp test:integration
polymer-cli: [06:55:27] Using gulpfile ~/build/Polymer/tools/packages/cli/gulpfile.js
polymer-cli: [06:55:27] Starting 'test:integration'...
web-component-tester: [06:55:27] Using gulpfile ~/build/Polymer/tools/packages/web-component-tester/gulpfile.js
web-component-tester: [06:55:27] Starting 'bower'...
web-component-tester: [06:55:27] Using cwd: /home/travis/build/Polymer/tools/packages/web-component-tester
web-component-tester: [06:55:27] Using bower dir: ./bower_components
web-component-tester: [06:55:28] bower not-cached https://github.com/Polymer/polymer.git#^1.5.0
web-component-tester: [06:55:28] bower resolve https://github.com/Polymer/polymer.git#^1.5.0
web-component-tester: [06:55:28] bower not-cached https://github.com/webcomponents/webcomponentsjs.git#^0.7.22
web-component-tester: [06:55:28] bower resolve https://github.com/webcomponents/webcomponentsjs.git#^0.7.22
web-component-tester: [06:55:28] bower not-cached https://github.com/domenic/sinon-chai.git#^2.7.0
web-component-tester: [06:55:28] bower resolve https://github.com/domenic/sinon-chai.git#^2.7.0
web-component-tester: [06:55:28] bower not-cached https://github.com/blittle/sinon.js.git#^1.14.1
web-component-tester: [06:55:28] bower resolve https://github.com/blittle/sinon.js.git#^1.14.1
web-component-tester: [06:55:28] bower not-cached https://github.com/lodash/lodash.git#^3.7.0
web-component-tester: [06:55:28] bower resolve https://github.com/lodash/lodash.git#^3.7.0
web-component-tester: [06:55:28] bower not-cached https://github.com/caolan/async.git#^1.5.0
web-component-tester: [06:55:28] bower resolve https://github.com/caolan/async.git#^1.5.0
web-component-tester: [06:55:28] bower not-cached https://github.com/PolymerLabs/stacky.git#^1.3.0
web-component-tester: [06:55:28] bower resolve https://github.com/PolymerLabs/stacky.git#^1.3.0
web-component-tester: [06:55:28] bower not-cached https://github.com/GoogleChrome/accessibility-developer-tools.git#^2.10.0
web-component-tester: [06:55:28] bower resolve https://github.com/GoogleChrome/accessibility-developer-tools.git#^2.10.0
web-component-tester: [06:55:28] bower not-cached https://github.com/PolymerElements/test-fixture.git#^3.0.0
web-component-tester: [06:55:28] bower resolve https://github.com/PolymerElements/test-fixture.git#^3.0.0
web-component-tester: [06:55:28] bower not-cached https://github.com/chaijs/chai.git#^3.2.0
web-component-tester: [06:55:28] bower resolve https://github.com/chaijs/chai.git#^3.2.0
web-component-tester: [06:55:28] bower not-cached https://github.com/mochajs/mocha.git#^3.1.2
web-component-tester: [06:55:28] bower resolve https://github.com/mochajs/mocha.git#^3.1.2
web-component-tester: [06:55:29] bower download https://github.com/webcomponents/webcomponentsjs/archive/v0.7.24.tar.gz
polymer-cli: polymer build
web-component-tester: [06:55:29] bower download https://github.com/Polymer/polymer/archive/v1.11.3.tar.gz
web-component-tester: [06:55:29] bower download https://github.com/domenic/sinon-chai/archive/v2.14.0.tar.gz
web-component-tester: [06:55:29] bower download https://github.com/lodash/lodash/archive/3.10.1.tar.gz
web-component-tester: [06:55:29] bower download https://github.com/blittle/sinon.js/archive/v1.17.1.tar.gz
web-component-tester: [06:55:29] bower download https://github.com/caolan/async/archive/v1.5.2.tar.gz
web-component-tester: [06:55:29] bower download https://github.com/PolymerLabs/stacky/archive/v1.3.2.tar.gz
web-component-tester: [06:55:29] bower download https://github.com/GoogleChrome/accessibility-developer-tools/archive/v2.12.0.tar.gz
web-component-tester: [06:55:29] bower download https://github.com/PolymerElements/test-fixture/archive/v3.0.0.tar.gz
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower download https://github.com/chaijs/chai/archive/3.5.0.tar.gz
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower download https://github.com/mochajs/mocha/archive/v3.5.3.tar.gz
web-component-tester: [06:55:30] bower resolved https://github.com/blittle/sinon.js.git#1.17.1
web-component-tester: [06:55:30] bower invalid-meta for:/tmp/travis/bower/6ac9fb6e69374501bea0bcad9749c0a7-7130-d2zWoA/bower.json
web-component-tester: [06:55:30] bower invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .html files: ["polymer.html","polymer-mini.html","polymer-micro.html"]
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower resolved https://github.com/Polymer/polymer.git#1.11.3
web-component-tester: [06:55:30] bower resolved https://github.com/domenic/sinon-chai.git#2.14.0
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower resolved https://github.com/webcomponents/webcomponentsjs.git#0.7.24
web-component-tester: [06:55:30] bower resolved https://github.com/PolymerElements/test-fixture.git#3.0.0
web-component-tester: [06:55:30] bower resolved https://github.com/PolymerLabs/stacky.git#1.3.2
web-component-tester: [06:55:30] bower extract archive.tar.gz
web-component-tester: [06:55:30] bower resolved https://github.com/caolan/async.git#1.5.2
web-component-tester: [06:55:31] bower resolved https://github.com/chaijs/chai.git#3.5.0
web-component-tester: [06:55:31] bower mismatch Version declared in the json (2.11.0) is different than the resolved one (2.12.0)
web-component-tester: [06:55:31] bower resolved https://github.com/GoogleChrome/accessibility-developer-tools.git#2.12.0
web-component-tester: [06:55:31] bower resolved https://github.com/lodash/lodash.git#3.10.1
web-component-tester: [06:55:31] bower resolved https://github.com/mochajs/mocha.git#3.5.3
web-component-tester: [06:55:31] bower install sinonjs#1.17.1
web-component-tester: [06:55:31] bower install polymer#1.11.3
web-component-tester: [06:55:31] bower install sinon-chai#2.14.0
web-component-tester: [06:55:31] bower install webcomponentsjs#0.7.24
web-component-tester: [06:55:31] bower install test-fixture#3.0.0
web-component-tester: [06:55:31] bower install stacky#1.3.2
web-component-tester: [06:55:31] bower install async#1.5.2
web-component-tester: [06:55:31] bower install chai#3.5.0
web-component-tester: [06:55:31] bower install accessibility-developer-tools#2.12.0
web-component-tester: [06:55:31] bower install lodash#3.10.1
web-component-tester: [06:55:31] bower install mocha#3.5.3
web-component-tester: [06:55:32] Finished 'bower' after 4.41 s
web-component-tester: [06:55:32] Starting 'test:integration'...
web-component-tester: Browser Tests
web-component-tester: integration fixture dir 'compilation'
web-component-tester: no bower.json found, defaulting to packageName=compilation
polymer-cli: 1) handles a simple correct case
web-component-tester: [BABEL] Note: The code generator has deoptimised the styling of undefined as it exceeds the max of 500KB.
polymer-cli: 2) handles a CLI preset
web-component-tester: [BABEL] Note: The code generator has deoptimised the styling of undefined as it exceeds the max of 500KB.
polymer-cli: 3) handles equivalent of the CLI preset
polymer-cli: ✓ handled (default) bundle all into the entrypoint (2625ms)
polymer-cli: ✓ handled bundle into fragment a (2617ms)
polymer-cli: ✓ handled bundle into fragment a and b (2669ms)
polymer-cli: ✓ handles polymer 1.x project bundler defaults (2493ms)
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: integration fixture dir 'components_dir'
web-component-tester: no bower.json found, defaulting to packageName=components_dir
polymer-cli: ✓ handles polymer 2.x project bundler defaults (4174ms)
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: integration fixture dir 'custom-components_dir'
web-component-tester: no bower.json found, defaulting to packageName=custom-components_dir
polymer-cli: ✓ handles bundle tagged-template literals in ES5 (5549ms)
polymer-cli: ✓ --npm finds dependencies in "node_modules/" (2279ms)
polymer-cli: - --components-dir finds dependencies in the specified directory
polymer-cli: ✓ module-based project builds with various configs (3161ms)
polymer-cli: install-variants
polymer-cli: ✓ installs variants (2642ms)
polymer-cli: integration tests
polymer-cli: init templates
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: integration fixture dir 'custom-multiple-component_dirs'
web-component-tester: no bower.json found, defaulting to packageName=custom-multiple-component_dirs
polymer-cli: ✓ test the Polymer 3.x element template (45112ms)
polymer-cli: ✓ test the Polymer 3.x application template (42723ms)
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: the variant with bower_components-foo
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: ✓ emits well formed errors
web-component-tester: the variant with bower_components-bar
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: ✓ emits well formed errors
web-component-tester: integration fixture dir 'define-webserver-hook'
web-component-tester: no bower.json found, defaulting to packageName=define-webserver-hook
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: integration fixture dir 'failing'
web-component-tester: no bower.json found, defaulting to packageName=failing
polymer-cli: ✓ test the Polymer 1.x application template (43573ms)
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: ✓ emits well formed errors
web-component-tester: integration fixture dir 'missing'
web-component-tester: - ran the correct variants
web-component-tester: - records the correct result stats
web-component-tester: integration fixture dir 'mixed-suites'
web-component-tester: no bower.json found, defaulting to packageName=mixed-suites
polymer-cli: ✓ test the Polymer 2.x application template (34703ms)
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: integration fixture dir 'multiple-component_dirs'
web-component-tester: no bower.json found, defaulting to packageName=multiple-component_dirs
polymer-cli: ✓ test the Polymer 2.x "element" template (36446ms)
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: the variant with bower_components-foo
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: ✓ emits well formed errors
web-component-tester: the variant with bower_components-bar
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: ✓ emits well formed errors
web-component-tester: integration fixture dir 'multiple-replace'
web-component-tester: no bower.json found, defaulting to packageName=multiple-replace
polymer-cli: ✓ test the Polymer 1.x "element" template (55585ms)
polymer-cli: info: [cli.init] Finding latest release of Polymer/shop
polymer-cli: info: [cli.init] Downloading v2.0.0 of Polymer/shop
polymer-cli: info: [cli.github] Unpacking template files
polymer-cli: info: [cli.github] Finished writing template files
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: integration fixture dir 'nested'
web-component-tester: no bower.json found, defaulting to packageName=nested
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: integration fixture dir 'no-tests'
web-component-tester: no bower.json found, defaulting to packageName=no-tests
polymer-cli: ✓ test the "shop" template (59702ms)
polymer-cli: info: [cli.init] Downloading 3.0 of Polymer/shop
polymer-cli: info: [cli.github] Unpacking template files
polymer-cli: info: [cli.github] Finished writing template files
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: integration fixture dir 'query-string'
web-component-tester: no bower.json found, defaulting to packageName=query-string
polymer-cli: Output of failed command 'node /home/travis/build/Polymer/tools/packages/cli/bin/polymer.js install' in directory /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae
polymer-cli: info: [cli.install] Installing npm dependencies...
polymer-cli: error: [cli.main] cli runtime exception: Error: Command failed: npm install
polymer-cli: npm ERR! Linux 4.4.0-101-generic
polymer-cli: npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "install"
polymer-cli: npm ERR! node v6.14.1
polymer-cli: npm ERR! npm v3.10.10
polymer-cli: npm ERR! shasum check failed for /tmp/npm-10704-178c8c15/registry.npmjs.org/_40polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
polymer-cli: npm ERR! Expected: 6567ce7d066536f46f16a0e952058b7118cac341
polymer-cli: npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709
polymer-cli: npm ERR! From: https://registry.npmjs.org/@polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
polymer-cli: npm ERR!
polymer-cli: npm ERR! If you need help, you may report this error at:
polymer-cli: npm ERR! <https://github.com/npm/npm/issues>
polymer-cli: npm ERR! Please include the following file with any support request:
polymer-cli: npm ERR! /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae/npm-debug.log
polymer-cli: error: [cli.main] Error: Command failed: npm install
polymer-cli: npm ERR! Linux 4.4.0-101-generic
polymer-cli: npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "install"
polymer-cli: npm ERR! node v6.14.1
polymer-cli: npm ERR! npm v3.10.10
polymer-cli: npm ERR! shasum check failed for /tmp/npm-10704-178c8c15/registry.npmjs.org/_40polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
polymer-cli: npm ERR! Expected: 6567ce7d066536f46f16a0e952058b7118cac341
polymer-cli: npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709
polymer-cli: npm ERR! From: https://registry.npmjs.org/@polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
polymer-cli: npm ERR!
polymer-cli: npm ERR! If you need help, you may report this error at:
polymer-cli: npm ERR! <https://github.com/npm/npm/issues>
polymer-cli: npm ERR! Please include the following file with any support request:
polymer-cli: npm ERR! /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae/npm-debug.log
polymer-cli: at ChildProcess.exithandler (child_process.js:199:12)
polymer-cli: at emitTwo (events.js:106:13)
polymer-cli: at ChildProcess.emit (events.js:191:7)
polymer-cli: at maybeClose (internal/child_process.js:920:16)
polymer-cli: at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
polymer-cli: info: [cli.init] Downloading 3.0 of Polymer/shop
polymer-cli: info: [cli.github] Unpacking template files
polymer-cli: info: [cli.github] Finished writing template files
web-component-tester: ✓ ran the correct variants
web-component-tester: ✓ records the correct result stats
web-component-tester: ✓ runs the correct tests
web-component-tester: define:webserver hook
web-component-tester: no bower.json found, defaulting to packageName=define-webserver-hook
web-component-tester: ✓ supports substituting given app (11653ms)
web-component-tester: early failures
web-component-tester: no bower.json found, defaulting to packageName=components_dir
web-component-tester: ✓ wct doesn't start testing if it's not bower installed locally (2053ms)
web-component-tester: no bower.json found, defaulting to packageName=early-failure
web-component-tester: ✓ fails if the client side library is out of allowed version range (2052ms)
web-component-tester: 51 passing (8m)
web-component-tester: 2 pending
web-component-tester: [07:03:29] Finished 'test:integration' after 7.95 min
polymer-cli: ✓ test the 3.0 "shop" template (209564ms)
polymer-cli: - test the Polymer 1.x "starter-kit" template
polymer-cli: - test the Polymer 2.x "starter-kit" template
polymer-cli: tools-sample-projects templates
polymer-cli: - test the "polymer-1-app" template
polymer-cli: - test the "polymer-2-app" template
polymer-cli: polymer lint
polymer-cli: ✓ handles a simple correct case (2158ms)
polymer-cli: ✓ fails when rules are not specified (2029ms)
polymer-cli: ✓ takes rules from the command line (2168ms)
polymer-cli: ✓ fails when lint errors are found (2230ms)
polymer-cli: ✓ applies fixes to a package when requested (2137ms)
polymer-cli: ✓ applies fixes to a specific file when requested (2160ms)
polymer-cli: ✓ only applies safe fixes when not prompting (2219ms)
polymer-cli: ✓ applies edit actions when requested by command line (2179ms)
polymer-cli: ✓ --npm finds dependencies in "node_modules" (2144ms)
polymer-cli: ✓ --component-dir finds dependencies in the specified directory (2153ms)
polymer-cli: --watch
polymer-cli: ✓ re-reports lint results when the filesystem changes (2688ms)
polymer-cli: ✓ with --fix, reports and fixes when the filesystem changes (2499ms)
polymer-cli: 29 passing (11m)
polymer-cli: 5 pending
polymer-cli: 3 failing
polymer-cli: 1) polymer build handles a simple correct case:
polymer-cli: expected contents of bundled-compiled/index.html
polymer-cli: + expected - actual
polymer-cli: -<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script><script>function foo(){alert("foo")}</script><script>function bar(){alert("bar")}</script><template>I'm foo.html!</template></div><div>hello world</div><script>(function(){alert("index IIFE")})();</script></body></html>
polymer-cli: +<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script><script>function foo(){alert("foo")}</script><script>function bar(){alert("bar")}</script><template>I'm foo.html!</template></div><div>hello world</div><script>(function(){alert("index IIFE")})();</script></body></html>
polymer-cli:
polymer-cli: at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
polymer-cli: at assertDirsEqual (lib/test/integration/build_test.js:151:27)
polymer-cli: at assertDirsEqual (lib/test/integration/build_test.js:146:13)
polymer-cli: at Suite.<anonymous> (lib/test/integration/build_test.js:35:9)
polymer-cli: at next (native)
polymer-cli: at fulfilled (lib/test/integration/build_test.js:13:58)
polymer-cli: at process._tickCallback (internal/process/next_tick.js:109:7)
polymer-cli: 2) polymer build handles a CLI preset:
polymer-cli: expected contents of es5-bundled/index.html
polymer-cli: + expected - actual
polymer-cli: -<html><head><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
polymer-cli: +<html><head><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
polymer-cli:
polymer-cli: at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
polymer-cli: at assertDirsEqual (lib/test/integration/build_test.js:151:27)
polymer-cli: at assertDirsEqual (lib/test/integration/build_test.js:146:13)
polymer-cli: at Suite.<anonymous> (lib/test/integration/build_test.js:43:9)
polymer-cli: at next (native)
polymer-cli: at fulfilled (lib/test/integration/build_test.js:13:58)
polymer-cli: at process._tickCallback (internal/process/next_tick.js:109:7)
polymer-cli: 3) polymer build handles equivalent of the CLI preset:
polymer-cli: expected contents of index.html
polymer-cli: + expected - actual
polymer-cli: -<html><head><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
polymer-cli: +<html><head><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
polymer-cli:
polymer-cli: at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
polymer-cli: at assertDirsEqual (lib/test/integration/build_test.js:151:27)
polymer-cli: at Suite.<anonymous> (lib/test/integration/build_test.js:57:9)
polymer-cli: at next (native)
polymer-cli: at fulfilled (lib/test/integration/build_test.js:13:58)
polymer-cli: at process._tickCallback (internal/process/next_tick.js:109:7)
polymer-cli: [07:06:17] 'test:integration' errored after 11 min
polymer-cli: [07:06:17] Error in plugin 'gulp-spawn-mocha'
polymer-cli: Message:
polymer-cli: Mocha exited with code 3
polymer-cli: npm ERR! Linux 4.4.0-101-generic
polymer-cli: npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "run" "test:integration"
polymer-cli: npm ERR! node v6.14.1
polymer-cli: npm ERR! npm v3.10.10
polymer-cli: npm ERR! code ELIFECYCLE
polymer-cli: npm ERR! polymer-cli@1.7.0-pre.13 test:integration: `gulp test:integration`
polymer-cli: npm ERR! Exit status 1
polymer-cli: npm ERR!
polymer-cli: npm ERR! Failed at the polymer-cli@1.7.0-pre.13 test:integration script 'gulp test:integration'.
polymer-cli: npm ERR! Make sure you have the latest version of node.js and npm installed.
polymer-cli: npm ERR! If you do, this is most likely a problem with the polymer-cli package,
polymer-cli: npm ERR! not with npm itself.
polymer-cli: npm ERR! Tell the author that this fails on your system:
polymer-cli: npm ERR! gulp test:integration
polymer-cli: npm ERR! You can get information on how to open an issue for this project with:
polymer-cli: npm ERR! npm bugs polymer-cli
polymer-cli: npm ERR! Or if that isn't available, you can get their info via:
polymer-cli: npm ERR! npm owner ls polymer-cli
polymer-cli: npm ERR! There is likely additional logging output above.
polymer-cli: npm ERR! Please include the following file with any support request:
polymer-cli: npm ERR! /home/travis/build/Polymer/tools/packages/cli/npm-debug.log
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: npm run test:integration
lerna ERR!
lerna ERR! npm ERR! Linux 4.4.0-101-generic
lerna ERR! npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "run" "test:integration"
lerna ERR! npm ERR! node v6.14.1
lerna ERR! npm ERR! npm v3.10.10
lerna ERR! npm ERR! code ELIFECYCLE
lerna ERR! npm ERR! polymer-cli@1.7.0-pre.13 test:integration: `gulp test:integration`
lerna ERR! npm ERR! Exit status 1
lerna ERR! npm ERR!
lerna ERR! npm ERR! Failed at the polymer-cli@1.7.0-pre.13 test:integration script 'gulp test:integration'.
lerna ERR! npm ERR! Make sure you have the latest version of node.js and npm installed.
lerna ERR! npm ERR! If you do, this is most likely a problem with the polymer-cli package,
lerna ERR! npm ERR! not with npm itself.
lerna ERR! npm ERR! Tell the author that this fails on your system:
lerna ERR! npm ERR! gulp test:integration
lerna ERR! npm ERR! You can get information on how to open an issue for this project with:
lerna ERR! npm ERR! npm bugs polymer-cli
lerna ERR! npm ERR! Or if that isn't available, you can get their info via:
lerna ERR! npm ERR! npm owner ls polymer-cli
lerna ERR! npm ERR! There is likely additional logging output above.
lerna ERR!
lerna ERR! npm ERR! Please include the following file with any support request:
lerna ERR! npm ERR! /home/travis/build/Polymer/tools/packages/cli/npm-debug.log
lerna ERR!
lerna ERR!
lerna ERR! > polymer-cli@1.7.0-pre.13 test:integration /home/travis/build/Polymer/tools/packages/cli
lerna ERR! > gulp test:integration
lerna ERR!
lerna ERR! [06:55:27] Using gulpfile ~/build/Polymer/tools/packages/cli/gulpfile.js
lerna ERR! [06:55:27] Starting 'test:integration'...
lerna ERR!
lerna ERR!
lerna ERR! polymer build
lerna ERR! 1) handles a simple correct case
lerna ERR! 2) handles a CLI preset
lerna ERR! 3) handles equivalent of the CLI preset
lerna ERR! ✓ handled (default) bundle all into the entrypoint (2625ms)
lerna ERR! ✓ handled bundle into fragment a (2617ms)
lerna ERR! ✓ handled bundle into fragment a and b (2669ms)
lerna ERR! ✓ handles polymer 1.x project bundler defaults (2493ms)
lerna ERR! ✓ handles polymer 2.x project bundler defaults (4174ms)
lerna ERR! ✓ handles bundle tagged-template literals in ES5 (5549ms)
lerna ERR! ✓ --npm finds dependencies in "node_modules/" (2279ms)
lerna ERR! - --components-dir finds dependencies in the specified directory
lerna ERR! ✓ module-based project builds with various configs (3161ms)
lerna ERR!
lerna ERR! install-variants
lerna ERR! ✓ installs variants (2642ms)
lerna ERR!
lerna ERR! integration tests
lerna ERR! init templates
lerna ERR! ✓ test the Polymer 3.x element template (45112ms)
lerna ERR! ✓ test the Polymer 3.x application template (42723ms)
lerna ERR! ✓ test the Polymer 1.x application template (43573ms)
lerna ERR! ✓ test the Polymer 2.x application template (34703ms)
lerna ERR! ✓ test the Polymer 2.x "element" template (36446ms)
lerna ERR! ✓ test the Polymer 1.x "element" template (55585ms)
lerna ERR! info: [cli.init] Finding latest release of Polymer/shop
lerna ERR! info: [cli.init] Downloading v2.0.0 of Polymer/shop
lerna ERR! info: [cli.github] Unpacking template files
lerna ERR! info: [cli.github] Finished writing template files
lerna ERR! ✓ test the "shop" template (59702ms)
lerna ERR! info: [cli.init] Downloading 3.0 of Polymer/shop
lerna ERR! info: [cli.github] Unpacking template files
lerna ERR! info: [cli.github] Finished writing template files
lerna ERR! Output of failed command 'node /home/travis/build/Polymer/tools/packages/cli/bin/polymer.js install' in directory /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae
lerna ERR! info: [cli.install] Installing npm dependencies...
lerna ERR! error: [cli.main] cli runtime exception: Error: Command failed: npm install
lerna ERR! npm ERR! Linux 4.4.0-101-generic
lerna ERR! npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "install"
lerna ERR! npm ERR! node v6.14.1
lerna ERR! npm ERR! npm v3.10.10
lerna ERR!
lerna ERR! npm ERR! shasum check failed for /tmp/npm-10704-178c8c15/registry.npmjs.org/_40polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
lerna ERR! npm ERR! Expected: 6567ce7d066536f46f16a0e952058b7118cac341
lerna ERR! npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709
lerna ERR! npm ERR! From: https://registry.npmjs.org/@polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
lerna ERR! npm ERR!
lerna ERR! npm ERR! If you need help, you may report this error at:
lerna ERR! npm ERR! <https://github.com/npm/npm/issues>
lerna ERR!
lerna ERR! npm ERR! Please include the following file with any support request:
lerna ERR! npm ERR! /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae/npm-debug.log
lerna ERR!
lerna ERR! error: [cli.main] Error: Command failed: npm install
lerna ERR! npm ERR! Linux 4.4.0-101-generic
lerna ERR! npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "install"
lerna ERR! npm ERR! node v6.14.1
lerna ERR! npm ERR! npm v3.10.10
lerna ERR!
lerna ERR! npm ERR! shasum check failed for /tmp/npm-10704-178c8c15/registry.npmjs.org/_40polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
lerna ERR! npm ERR! Expected: 6567ce7d066536f46f16a0e952058b7118cac341
lerna ERR! npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709
lerna ERR! npm ERR! From: https://registry.npmjs.org/@polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
lerna ERR! npm ERR!
lerna ERR! npm ERR! If you need help, you may report this error at:
lerna ERR! npm ERR! <https://github.com/npm/npm/issues>
lerna ERR!
lerna ERR! npm ERR! Please include the following file with any support request:
lerna ERR! npm ERR! /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae/npm-debug.log
lerna ERR!
lerna ERR! at ChildProcess.exithandler (child_process.js:199:12)
lerna ERR! at emitTwo (events.js:106:13)
lerna ERR! at ChildProcess.emit (events.js:191:7)
lerna ERR! at maybeClose (internal/child_process.js:920:16)
lerna ERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
lerna ERR!
lerna ERR! info: [cli.init] Downloading 3.0 of Polymer/shop
lerna ERR! info: [cli.github] Unpacking template files
lerna ERR! info: [cli.github] Finished writing template files
lerna ERR! ✓ test the 3.0 "shop" template (209564ms)
lerna ERR! - test the Polymer 1.x "starter-kit" template
lerna ERR! - test the Polymer 2.x "starter-kit" template
lerna ERR! tools-sample-projects templates
lerna ERR! - test the "polymer-1-app" template
lerna ERR! - test the "polymer-2-app" template
lerna ERR!
lerna ERR! polymer lint
lerna ERR! ✓ handles a simple correct case (2158ms)
lerna ERR! ✓ fails when rules are not specified (2029ms)
lerna ERR! ✓ takes rules from the command line (2168ms)
lerna ERR! ✓ fails when lint errors are found (2230ms)
lerna ERR! ✓ applies fixes to a package when requested (2137ms)
lerna ERR! ✓ applies fixes to a specific file when requested (2160ms)
lerna ERR! ✓ only applies safe fixes when not prompting (2219ms)
lerna ERR! ✓ applies edit actions when requested by command line (2179ms)
lerna ERR! ✓ --npm finds dependencies in "node_modules" (2144ms)
lerna ERR! ✓ --component-dir finds dependencies in the specified directory (2153ms)
lerna ERR! --watch
lerna ERR! ✓ re-reports lint results when the filesystem changes (2688ms)
lerna ERR! ✓ with --fix, reports and fixes when the filesystem changes (2499ms)
lerna ERR!
lerna ERR!
lerna ERR! 29 passing (11m)
lerna ERR! 5 pending
lerna ERR! 3 failing
lerna ERR!
lerna ERR! 1) polymer build handles a simple correct case:
lerna ERR!
lerna ERR! expected contents of bundled-compiled/index.html
lerna ERR! + expected - actual
lerna ERR!
lerna ERR! -<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script><script>function foo(){alert("foo")}</script><script>function bar(){alert("bar")}</script><template>I'm foo.html!</template></div><div>hello world</div><script>(function(){alert("index IIFE")})();</script></body></html>
lerna ERR! +<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script><script>function foo(){alert("foo")}</script><script>function bar(){alert("bar")}</script><template>I'm foo.html!</template></div><div>hello world</div><script>(function(){alert("index IIFE")})();</script></body></html>
lerna ERR!
lerna ERR! at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
lerna ERR! at assertDirsEqual (lib/test/integration/build_test.js:151:27)
lerna ERR! at assertDirsEqual (lib/test/integration/build_test.js:146:13)
lerna ERR! at Suite.<anonymous> (lib/test/integration/build_test.js:35:9)
lerna ERR! at next (native)
lerna ERR! at fulfilled (lib/test/integration/build_test.js:13:58)
lerna ERR! at process._tickCallback (internal/process/next_tick.js:109:7)
lerna ERR!
lerna ERR! 2) polymer build handles a CLI preset:
lerna ERR!
lerna ERR! expected contents of es5-bundled/index.html
lerna ERR! + expected - actual
lerna ERR!
lerna ERR! -<html><head><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
lerna ERR! +<html><head><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
lerna ERR!
lerna ERR! at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
lerna ERR! at assertDirsEqual (lib/test/integration/build_test.js:151:27)
lerna ERR! at assertDirsEqual (lib/test/integration/build_test.js:146:13)
lerna ERR! at Suite.<anonymous> (lib/test/integration/build_test.js:43:9)
lerna ERR! at next (native)
lerna ERR! at fulfilled (lib/test/integration/build_test.js:13:58)
lerna ERR! at process._tickCallback (internal/process/next_tick.js:109:7)
lerna ERR!
lerna ERR! 3) polymer build handles equivalent of the CLI preset:
lerna ERR!
lerna ERR! expected contents of index.html
lerna ERR! + expected - actual
lerna ERR!
lerna ERR! -<html><head><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
lerna ERR! +<html><head><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
lerna ERR!
lerna ERR! at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
lerna ERR! at assertDirsEqual (lib/test/integration/build_test.js:151:27)
lerna ERR! at Suite.<anonymous> (lib/test/integration/build_test.js:57:9)
lerna ERR! at next (native)
lerna ERR! at fulfilled (lib/test/integration/build_test.js:13:58)
lerna ERR! at process._tickCallback (internal/process/next_tick.js:109:7)
lerna ERR!
lerna ERR!
lerna ERR!
lerna ERR! [07:06:17] 'test:integration' errored after 11 min
lerna ERR! [07:06:17] Error in plugin 'gulp-spawn-mocha'
lerna ERR! Message:
lerna ERR! Mocha exited with code 3
lerna ERR!
lerna ERR! at Promise.all.then.arr (/home/travis/build/Polymer/tools/node_modules/execa/index.js:236:11)
{ Error: Command failed: npm run test:integration
npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "run" "test:integration"
npm ERR! node v6.14.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! polymer-cli@1.7.0-pre.13 test:integration: `gulp test:integration`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the polymer-cli@1.7.0-pre.13 test:integration script 'gulp test:integration'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the polymer-cli package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp test:integration
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs polymer-cli
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls polymer-cli
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/travis/build/Polymer/tools/packages/cli/npm-debug.log
> polymer-cli@1.7.0-pre.13 test:integration /home/travis/build/Polymer/tools/packages/cli
> gulp test:integration
[06:55:27] Using gulpfile ~/build/Polymer/tools/packages/cli/gulpfile.js
[06:55:27] Starting 'test:integration'...
polymer build
1) handles a simple correct case
2) handles a CLI preset
3) handles equivalent of the CLI preset
✓ handled (default) bundle all into the entrypoint (2625ms)
✓ handled bundle into fragment a (2617ms)
✓ handled bundle into fragment a and b (2669ms)
✓ handles polymer 1.x project bundler defaults (2493ms)
✓ handles polymer 2.x project bundler defaults (4174ms)
✓ handles bundle tagged-template literals in ES5 (5549ms)
✓ --npm finds dependencies in "node_modules/" (2279ms)
- --components-dir finds dependencies in the specified directory
✓ module-based project builds with various configs (3161ms)
install-variants
✓ installs variants (2642ms)
integration tests
init templates
✓ test the Polymer 3.x element template (45112ms)
✓ test the Polymer 3.x application template (42723ms)
✓ test the Polymer 1.x application template (43573ms)
✓ test the Polymer 2.x application template (34703ms)
✓ test the Polymer 2.x "element" template (36446ms)
✓ test the Polymer 1.x "element" template (55585ms)
info: [cli.init] Finding latest release of Polymer/shop
info: [cli.init] Downloading v2.0.0 of Polymer/shop
info: [cli.github] Unpacking template files
info: [cli.github] Finished writing template files
✓ test the "shop" template (59702ms)
info: [cli.init] Downloading 3.0 of Polymer/shop
info: [cli.github] Unpacking template files
info: [cli.github] Finished writing template files
Output of failed command 'node /home/travis/build/Polymer/tools/packages/cli/bin/polymer.js install' in directory /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae
info: [cli.install] Installing npm dependencies...
error: [cli.main] cli runtime exception: Error: Command failed: npm install
npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "install"
npm ERR! node v6.14.1
npm ERR! npm v3.10.10
npm ERR! shasum check failed for /tmp/npm-10704-178c8c15/registry.npmjs.org/_40polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
npm ERR! Expected: 6567ce7d066536f46f16a0e952058b7118cac341
npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709
npm ERR! From: https://registry.npmjs.org/@polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae/npm-debug.log
error: [cli.main] Error: Command failed: npm install
npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "install"
npm ERR! node v6.14.1
npm ERR! npm v3.10.10
npm ERR! shasum check failed for /tmp/npm-10704-178c8c15/registry.npmjs.org/_40polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
npm ERR! Expected: 6567ce7d066536f46f16a0e952058b7118cac341
npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709
npm ERR! From: https://registry.npmjs.org/@polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae/npm-debug.log
at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
info: [cli.init] Downloading 3.0 of Polymer/shop
info: [cli.github] Unpacking template files
info: [cli.github] Finished writing template files
✓ test the 3.0 "shop" template (209564ms)
- test the Polymer 1.x "starter-kit" template
- test the Polymer 2.x "starter-kit" template
tools-sample-projects templates
- test the "polymer-1-app" template
- test the "polymer-2-app" template
polymer lint
✓ handles a simple correct case (2158ms)
✓ fails when rules are not specified (2029ms)
✓ takes rules from the command line (2168ms)
✓ fails when lint errors are found (2230ms)
✓ applies fixes to a package when requested (2137ms)
✓ applies fixes to a specific file when requested (2160ms)
✓ only applies safe fixes when not prompting (2219ms)
✓ applies edit actions when requested by command line (2179ms)
✓ --npm finds dependencies in "node_modules" (2144ms)
✓ --component-dir finds dependencies in the specified directory (2153ms)
--watch
✓ re-reports lint results when the filesystem changes (2688ms)
✓ with --fix, reports and fixes when the filesystem changes (2499ms)
29 passing (11m)
5 pending
3 failing
1) polymer build handles a simple correct case:
expected contents of bundled-compiled/index.html
+ expected - actual
-<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script><script>function foo(){alert("foo")}</script><script>function bar(){alert("bar")}</script><template>I'm foo.html!</template></div><div>hello world</div><script>(function(){alert("index IIFE")})();</script></body></html>
+<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script><script>function foo(){alert("foo")}</script><script>function bar(){alert("bar")}</script><template>I'm foo.html!</template></div><div>hello world</div><script>(function(){alert("index IIFE")})();</script></body></html>
at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
at assertDirsEqual (lib/test/integration/build_test.js:151:27)
at assertDirsEqual (lib/test/integration/build_test.js:146:13)
at Suite.<anonymous> (lib/test/integration/build_test.js:35:9)
at next (native)
at fulfilled (lib/test/integration/build_test.js:13:58)
at process._tickCallback (internal/process/next_tick.js:109:7)
2) polymer build handles a CLI preset:
expected contents of es5-bundled/index.html
+ expected - actual
-<html><head><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
+<html><head><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
at assertDirsEqual (lib/test/integration/build_test.js:151:27)
at assertDirsEqual (lib/test/integration/build_test.js:146:13)
at Suite.<anonymous> (lib/test/integration/build_test.js:43:9)
at next (native)
at fulfilled (lib/test/integration/build_test.js:13:58)
at process._tickCallback (internal/process/next_tick.js:109:7)
3) polymer build handles equivalent of the CLI preset:
expected contents of index.html
+ expected - actual
-<html><head><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
+<html><head><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\""+a+"\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I'm foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>
at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)
at assertDirsEqual (lib/test/integration/build_test.js:151:27)
at Suite.<anonymous> (lib/test/integration/build_test.js:57:9)
at next (native)
at fulfilled (lib/test/integration/build_test.js:13:58)
at process._tickCallback (internal/process/next_tick.js:109:7)
[07:06:17] 'test:integration' errored after 11 min
[07:06:17] Error in plugin 'gulp-spawn-mocha'
Message:
Mocha exited with code 3
at Promise.all.then.arr (/home/travis/build/Polymer/tools/node_modules/execa/index.js:236:11)
at process._tickCallback (internal/process/next_tick.js:109:7)
code: 1,
killed: false,
stdout: '\n> polymer-cli@1.7.0-pre.13 test:integration /home/travis/build/Polymer/tools/packages/cli\n> gulp test:integration\n\n[06:55:27] Using gulpfile ~/build/Polymer/tools/packages/cli/gulpfile.js\n[06:55:27] Starting \'test:integration\'...\n\n\n polymer build\n 1) handles a simple correct case\n 2) handles a CLI preset\n 3) handles equivalent of the CLI preset\n ✓ handled (default) bundle all into the entrypoint (2625ms)\n ✓ handled bundle into fragment a (2617ms)\n ✓ handled bundle into fragment a and b (2669ms)\n ✓ handles polymer 1.x project bundler defaults (2493ms)\n ✓ handles polymer 2.x project bundler defaults (4174ms)\n ✓ handles bundle tagged-template literals in ES5 (5549ms)\n ✓ --npm finds dependencies in "node_modules/" (2279ms)\n - --components-dir finds dependencies in the specified directory\n ✓ module-based project builds with various configs (3161ms)\n\n install-variants\n ✓ installs variants (2642ms)\n\n integration tests\n init templates\n ✓ test the Polymer 3.x element template (45112ms)\n ✓ test the Polymer 3.x application template (42723ms)\n ✓ test the Polymer 1.x application template (43573ms)\n ✓ test the Polymer 2.x application template (34703ms)\n ✓ test the Polymer 2.x "element" template (36446ms)\n ✓ test the Polymer 1.x "element" template (55585ms)\n\u001b[32minfo\u001b[39m: [cli.init] Finding latest release of Polymer/shop\n\u001b[32minfo\u001b[39m: [cli.init] Downloading v2.0.0 of Polymer/shop\n\u001b[32minfo\u001b[39m: [cli.github] Unpacking template files\n\u001b[32minfo\u001b[39m: [cli.github] Finished writing template files\n ✓ test the "shop" template (59702ms)\n\u001b[32minfo\u001b[39m: [cli.init] Downloading 3.0 of Polymer/shop\n\u001b[32minfo\u001b[39m: [cli.github] Unpacking template files\n\u001b[32minfo\u001b[39m: [cli.github] Finished writing template files\nOutput of failed command \'node /home/travis/build/Polymer/tools/packages/cli/bin/polymer.js install\' in directory /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae\n\u001b[32minfo\u001b[39m: [cli.install] Installing npm dependencies...\n\u001b[31merror\u001b[39m: [cli.main] cli runtime exception: Error: Command failed: npm install\nnpm ERR! Linux 4.4.0-101-generic\nnpm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "install"\nnpm ERR! node v6.14.1\nnpm ERR! npm v3.10.10\n\nnpm ERR! shasum check failed for /tmp/npm-10704-178c8c15/registry.npmjs.org/_40polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz\nnpm ERR! Expected: 6567ce7d066536f46f16a0e952058b7118cac341\nnpm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709\nnpm ERR! From: https://registry.npmjs.org/@polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz\nnpm ERR! \nnpm ERR! If you need help, you may report this error at:\nnpm ERR! <https://github.com/npm/npm/issues>\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR! /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae/npm-debug.log\n\n\u001b[31merror\u001b[39m: [cli.main] Error: Command failed: npm install\nnpm ERR! Linux 4.4.0-101-generic\nnpm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "install"\nnpm ERR! node v6.14.1\nnpm ERR! npm v3.10.10\n\nnpm ERR! shasum check failed for /tmp/npm-10704-178c8c15/registry.npmjs.org/_40polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz\nnpm ERR! Expected: 6567ce7d066536f46f16a0e952058b7118cac341\nnpm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709\nnpm ERR! From: https://registry.npmjs.org/@polymer/iron-overlay-behavior/-/iron-overlay-behavior-3.0.0-pre.12.tgz\nnpm ERR! \nnpm ERR! If you need help, you may report this error at:\nnpm ERR! <https://github.com/npm/npm/issues>\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR! /tmp/a491a94abe43fc7ef7b8cb6a541ef16b420ce7ae/npm-debug.log\n\n at ChildProcess.exithandler (child_process.js:199:12)\n at emitTwo (events.js:106:13)\n at ChildProcess.emit (events.js:191:7)\n at maybeClose (internal/child_process.js:920:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)\n\n\u001b[32minfo\u001b[39m: [cli.init] Downloading 3.0 of Polymer/shop\n\u001b[32minfo\u001b[39m: [cli.github] Unpacking template files\n\u001b[32minfo\u001b[39m: [cli.github] Finished writing template files\n ✓ test the 3.0 "shop" template (209564ms)\n - test the Polymer 1.x "starter-kit" template\n - test the Polymer 2.x "starter-kit" template\n tools-sample-projects templates\n - test the "polymer-1-app" template\n - test the "polymer-2-app" template\n\n polymer lint\n ✓ handles a simple correct case (2158ms)\n ✓ fails when rules are not specified (2029ms)\n ✓ takes rules from the command line (2168ms)\n ✓ fails when lint errors are found (2230ms)\n ✓ applies fixes to a package when requested (2137ms)\n ✓ applies fixes to a specific file when requested (2160ms)\n ✓ only applies safe fixes when not prompting (2219ms)\n ✓ applies edit actions when requested by command line (2179ms)\n ✓ --npm finds dependencies in "node_modules" (2144ms)\n ✓ --component-dir finds dependencies in the specified directory (2153ms)\n --watch\n ✓ re-reports lint results when the filesystem changes (2688ms)\n ✓ with --fix, reports and fixes when the filesystem changes (2499ms)\n\n\n 29 passing (11m)\n 5 pending\n 3 failing\n\n 1) polymer build handles a simple correct case:\n\n expected contents of bundled-compiled/index.html\n + expected - actual\n\n -<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\\""+a+"\\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script><script>function foo(){alert("foo")}</script><script>function bar(){alert("bar")}</script><template>I\'m foo.html!</template></div><div>hello world</div><script>(function(){alert("index IIFE")})();</script></body></html>\n +<html><head></head><body><div hidden="" by-polymer-bundler=""><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\\""+a+"\\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script><script>function foo(){alert("foo")}</script><script>function bar(){alert("bar")}</script><template>I\'m foo.html!</template></div><div>hello world</div><script>(function(){alert("index IIFE")})();</script></body></html>\n \n at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)\n at assertDirsEqual (lib/test/integration/build_test.js:151:27)\n at assertDirsEqual (lib/test/integration/build_test.js:146:13)\n at Suite.<anonymous> (lib/test/integration/build_test.js:35:9)\n at next (native)\n at fulfilled (lib/test/integration/build_test.js:13:58)\n at process._tickCallback (internal/process/next_tick.js:109:7)\n\n 2) polymer build handles a CLI preset:\n\n expected contents of es5-bundled/index.html\n + expected - actual\n\n -<html><head><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\\""+a+"\\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I\'m foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>\n +<html><head><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\\""+a+"\\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I\'m foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>\n \n at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)\n at assertDirsEqual (lib/test/integration/build_test.js:151:27)\n at assertDirsEqual (lib/test/integration/build_test.js:146:13)\n at Suite.<anonymous> (lib/test/integration/build_test.js:43:9)\n at next (native)\n at fulfilled (lib/test/integration/build_test.js:13:58)\n at process._tickCallback (internal/process/next_tick.js:109:7)\n\n 3) polymer build handles equivalent of the CLI preset:\n\n expected contents of index.html\n + expected - actual\n\n -<html><head><script>(function(a){function b(a){return q.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof q.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return q.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a){return q.getPrototypeOf=h=Object.getPrototypeOf||function(a){return a.__proto__},h(a)}function i(a,b){return q.setPrototypeOf=i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(){return q.construct="undefined"!==typeof Reflect&&Reflect.construct?j=Reflect.construct:j=function(b,c,d){var e=[null];e.push.apply(e,c);var a=b.bind.apply(b,e),f=new a;return d&&q.setPrototypeOf(f,d.prototype),f},j.apply(null,arguments)}function k(a){var b="function"===typeof Map?new Map:void 0;return q.wrapNativeSuper=k=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),q.setPrototypeOf(c,q.setPrototypeOf(function(){return q.construct(a,arguments,q.getPrototypeOf(this).constructor)},a))},k(a)}function l(a,b,c){return q.get="undefined"!==typeof Reflect&&Reflect.get?l=Reflect.get:l=function(a,b,c){var d=q.superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},l(a,b,c||a)}function m(a,b,c,d){return m="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(a,b,c,d){var e,f=q.superPropBase(a,b);if(f){if(e=Object.getOwnPropertyDescriptor(f,b),e.set)return e.set.call(d,c),!0;if(!e.writable)return!1}if(e=Object.getOwnPropertyDescriptor(d,b),e){if(!e.writable)return!1;e.value=c,Object.defineProperty(d,b,e)}else q.defineProperty(d,b,c);return!0},m(a,b,c,d)}function n(a,b,c,d,e){const f=m(a,b,c,d||a);if(!f&&e)throw new Error("failed to set property");return c}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var q=a.babelHelpers={};q.typeof=b,q.asyncIterator=function(a){var b;if("function"===typeof Symbol){if(Symbol.asyncIterator&&(b=a[Symbol.asyncIterator],null!=b))return b.call(a);if(Symbol.iterator&&(b=a[Symbol.iterator],null!=b))return b.call(a)}throw new TypeError("Object is not async iterable")},q.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},q.AsyncGenerator=c,q.wrapAsyncGenerator=function(a){return function(){return new q.AsyncGenerator(a.apply(this,arguments))}},q.awaitAsyncGenerator=function(a){return new q.AwaitValue(a)},q.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},q.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},q.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},q.defineEnumerableProperties=e,q.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},q.defineProperty=f,q.extends=g,q.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){q.defineProperty(a,b,c[b])})}return a},q.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");q.setPrototypeOf(a.prototype,b&&b.prototype),b&&q.setPrototypeOf(a,b)},q.getPrototypeOf=h,q.setPrototypeOf=i,q.construct=j,q.wrapNativeSuper=k,q.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},q.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},q.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},q.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},q.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},q.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},q.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return a},q.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:q.assertThisInitialized(a)},q.superPropBase=function(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=q.getPrototypeOf(a),null!==a););return a},q.get=l,q.set=n,q.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},q.temporalRef=function(a,b){if(a===q.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},q.readOnlyError=function(a){throw new Error("\\""+a+"\\" is read-only")},q.temporalUndefined={},q.slicedToArray=function(a,b){return q.arrayWithHoles(a)||q.iterableToArrayLimit(a,b)||q.nonIterableRest()},q.toArray=function(a){return q.arrayWithHoles(a)||q.iterableToArray(a)||q.nonIterableRest()},q.toConsumableArray=function(a){return q.arrayWithoutHoles(a)||q.iterableToArray(a)||q.nonIterableSpread()},q.arrayWithoutHoles=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}},q.arrayWithHoles=function(a){if(Array.isArray(a))return a},q.iterableToArray=o,q.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},q.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},q.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},q.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I\'m foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(b).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>\n +<html><head><script>(function(a){function b(a){return p.typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?b=function(a){return typeof a}:b=function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a){function b(d,e){try{var f=a[d](e),g=f.value,h=g instanceof p.AwaitValue;Promise.resolve(h?g.wrapped:g).then(function(a){return h?void b("next",a):void c(f.done?"return":"normal",a)},function(a){b("throw",a)})}catch(a){c("throw",a)}}function c(a,c){switch(a){case"return":d.resolve({value:c,done:!0});break;case"throw":d.reject(c);break;default:d.resolve({value:c,done:!1});}d=d.next,d?b(d.key,d.arg):e=null}var d,e;this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};e?e=e.next=h:(d=e=h,b(a,c))})},"function"!==typeof a.return&&(this.return=void 0)}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b){for(var c in b){var d=b[c];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,c,d)}if(Object.getOwnPropertySymbols)for(var e=Object.getOwnPropertySymbols(b),f=0;f<e.length;f++){var g=e[f],d=b[g];d.configurable=d.enumerable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,g,d)}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return p.extends=g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(d===void 0){var e=Object.getPrototypeOf(a);return null===e?void 0:h(e,b,c)}if("value"in d)return d.value;var f=d.get;return void 0===f?void 0:f.call(c)}function i(a){return i=Object.getPrototypeOf||function(a){return a.__proto__},i(a)}function j(a,b){return j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},j(a,b)}function k(a,b,c){return k="object"===typeof Reflect&&Reflect.construct||function(b,c,d){var e,f=[null];return f.push.apply(f,c),e=b.bind.apply(b,f),j(new e,d.prototype)},k(a,b,c)}function l(a){var b="function"===typeof Map?new Map:void 0;return p.wrapNativeSuper=l=function(a){function c(){}if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),j(c,j(function(){return k(a,arguments,i(this).constructor)},a))},l(a)}function m(a,b,c,d){var e=Object.getOwnPropertyDescriptor(a,b);if(e===void 0){var f=Object.getPrototypeOf(a);null!==f&&m(f,b,c,d)}else if("value"in e&&e.writable)e.value=c;else{var g=e.set;g!==void 0&&g.call(d,c)}return c}function n(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function n(a){if(Array.isArray(a))return a}function o(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}var p=a.babelHelpers={};p.typeof=b,p.asyncIterator=function(a){if("function"===typeof Symbol){if(Symbol.asyncIterator){var b=a[Symbol.asyncIterator];if(null!=b)return b.call(a)}if(Symbol.iterator)return a[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(a){this.wrapped=a},"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(a){return this._invoke("next",a)},c.prototype.throw=function(a){return this._invoke("throw",a)},c.prototype.return=function(a){return this._invoke("return",a)},p.AsyncGenerator=c,p.wrapAsyncGenerator=function(a){return function(){return new p.AsyncGenerator(a.apply(this,arguments))}},p.awaitAsyncGenerator=function(a){return new p.AwaitValue(a)},p.asyncGeneratorDelegate=function(a,b){function c(c,d){return e=!0,d=new Promise(function(b){b(a[c](d))}),{done:!1,value:b(d)}}var d={},e=!1;return"function"===typeof Symbol&&Symbol.iterator&&(d[Symbol.iterator]=function(){return this}),d.next=function(a){return e?(e=!1,a):c("next",a)},"function"===typeof a.throw&&(d.throw=function(a){if(e)throw e=!1,a;return c("throw",a)}),"function"===typeof a.return&&(d.return=function(a){return c("return",a)}),d},p.asyncToGenerator=function(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a,b){try{var c=i[a](b),f=c.value}catch(a){return void e(a)}c.done?d(f):Promise.resolve(f).then(g,h)}function g(a){f("next",a)}function h(a){f("throw",a)}var i=a.apply(b,c);g()})}},p.classCallCheck=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},p.createClass=function(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a},p.defineEnumerableProperties=e,p.defaults=function(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f&&f.configurable&&a[e]===void 0&&Object.defineProperty(a,e,f)}return a},p.defineProperty=f,p.extends=g,p.objectSpread=function(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"===typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){p.defineProperty(a,b,c[b])})}return a},p.get=h,p.inherits=function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},p.wrapNativeSuper=l,p.instanceof=function(a,b){return null!=b&&"undefined"!==typeof Symbol&&b[Symbol.hasInstance]?b[Symbol.hasInstance](a):a instanceof b},p.interopRequireDefault=function(a){return a&&a.__esModule?a:{default:a}},p.interopRequireWildcard=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b},p.newArrowCheck=function(a,b){if(a!==b)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(a){if(null==a)throw new TypeError("Cannot destructure undefined")},p.objectWithoutProperties=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)c=g[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e},p.assertThisInitialized=function(a){if(void 0===a)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return a},p.possibleConstructorReturn=function(a,b){return b&&("object"===typeof b||"function"===typeof b)?b:p.assertThisInitialized(a)},p.set=m,p.taggedTemplateLiteral=function(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))},p.temporalRef=function(a,b){if(a===p.temporalUndefined)throw new ReferenceError(b+" is not defined - temporal dead zone");else return a},p.readOnlyError=function(a){throw new Error("\\""+a+"\\" is read-only")},p.temporalUndefined={},p.slicedToArray=function(a,b){return p.arrayWithHoles(a)||p.iterableToArrayLimit(a,b)||p.nonIterableRest()},p.toArray=function(a){return p.arrayWithHoles(a)||p.iterableToArray(a)||p.nonIterableRest()},p.toConsumableArray=function(a){return p.arrayWithoutHoles(a)||p.iterableToArray(a)||p.nonIterableSpread()},p.arrayWithoutHoles=n,p.arrayWithHoles=n,p.iterableToArray=o,p.iterableToArrayLimit=function(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{d||null==h["return"]||h["return"]()}finally{if(e)throw f}}return c},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(a){return"symbol"===typeof a?a:a+""}})("undefined"===typeof global?self:global);</script><script>window.customElements||document.write("<!--");</script><script type="text/javascript" src="webcomponentsjs/custom-elements-es5-adapter.js"></script><!--! do not remove --><script>console.log("webcomponents-loader.js goes here");</script></head><body><div hidden="" by-polymer-bundler=""><link rel="lazy-import" href="bar.html"><template>I\'m foo.html!</template><link rel="import" href="shared_bundle_1.html"></div><div>hello world</div><script>var Foo=function(a){function b(){return babelHelpers.classCallCheck(this,b),babelHelpers.possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return babelHelpers.inherits(b,a),b}(babelHelpers.wrapNativeSuper(HTMLElement));</script></body></html>\n \n at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:216:32)\n at assertDirsEqual (lib/test/integration/build_test.js:151:27)\n at Suite.<anonymous> (lib/test/integration/build_test.js:57:9)\n at next (native)\n at fulfilled (lib/test/integration/build_test.js:13:58)\n at process._tickCallback (internal/process/next_tick.js:109:7)\n\n\n\n[07:06:17] \'test:integration\' errored after 11 min\n[07:06:17] Error in plugin \'gulp-spawn-mocha\'\nMessage:\n Mocha exited with code 3\n',
stderr: '\nnpm ERR! Linux 4.4.0-101-generic\nnpm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "run" "test:integration"\nnpm ERR! node v6.14.1\nnpm ERR! npm v3.10.10\nnpm ERR! code ELIFECYCLE\nnpm ERR! polymer-cli@1.7.0-pre.13 test:integration: `gulp test:integration`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the polymer-cli@1.7.0-pre.13 test:integration script \'gulp test:integration\'.\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\nnpm ERR! If you do, this is most likely a problem with the polymer-cli package,\nnpm ERR! not with npm itself.\nnpm ERR! Tell the author that this fails on your system:\nnpm ERR! gulp test:integration\nnpm ERR! You can get information on how to open an issue for this project with:\nnpm ERR! npm bugs polymer-cli\nnpm ERR! Or if that isn\'t available, you can get their info via:\nnpm ERR! npm owner ls polymer-cli\nnpm ERR! There is likely additional logging output above.\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR! /home/travis/build/Polymer/tools/packages/cli/npm-debug.log\n',
failed: true,
signal: null,
cmd: 'npm run test:integration',
timedOut: false,
exitCode: 1 }
npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "run" "test:integration:parallel"
npm ERR! node v6.14.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! polymer-tools@ test:integration:parallel: `lerna run test:integration --stream --parallel`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the polymer-tools@ test:integration:parallel script 'lerna run test:integration --stream --parallel'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the polymer-tools package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! lerna run test:integration --stream --parallel
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs polymer-tools
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls polymer-tools
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/travis/build/Polymer/tools/npm-debug.log
travis_time:end:0d240a24:start=1524466523546822812,finish=1524467179459163494,duration=655912340682

The command "xvfb-run npm $TEST_COMMAND" exited with 1.
travis_fold:start:sauce_connect.stop
Stopping Sauce Connect
travis_time:start:0ce8523b
$ travis_stop_sauce_connect
Waiting for graceful Sauce Connect shutdown
23 Apr 07:06:19 - Got signal terminated
23 Apr 07:06:19 - Cleaning up.
23 Apr 07:06:19 - Removing tunnel 5e36740c0547440aa1670656ac28d6bc.
23 Apr 07:06:19 - Waiting for any active jobs using this tunnel to finish.
23 Apr 07:06:19 - Press CTRL-C again to shut down immediately.
23 Apr 07:06:19 - Note: if you do this, tests that are still running will fail.
Waiting for graceful Sauce Connect shutdown
Waiting for graceful Sauce Connect shutdown
Waiting for graceful Sauce Connect shutdown
Waiting for graceful Sauce Connect shutdown
Waiting for graceful Sauce Connect shutdown
23 Apr 07:06:25 - All jobs using the tunnel have finished.
23 Apr 07:06:25 - Waiting for the connection to terminate...
Waiting for graceful Sauce Connect shutdown
23 Apr 07:06:26 - Connection closed (8).
23 Apr 07:06:26 - Goodbye.
Sauce Connect shutdown complete
travis_time:end:0ce8523b:start=1524467179490641272,finish=1524467186509602662,duration=7018961390
travis_fold:end:sauce_connect.stop

Done. Your build exited with 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment