Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Store
Commits
97171be1
Commit
97171be1
authored
Apr 20, 2016
by
Ward Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: testing config tweaks & remove systemjs-polyfill (no longer needed)
parent
5213e619
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
index.html
index.html
+4
-4
protractor.config.js
protractor.config.js
+4
-5
No files found.
index.html
View file @
97171be1
<html>
<head>
<title>
Angular 2 QuickStart
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"stylesheet"
href=
"styles.css"
>
<!-- 1. Load libraries -->
<!-- IE required polyfills, in this exact order -->
<script
src=
"node_modules/es6-shim/es6-shim.min.js"
></script>
<script
src=
"node_modules/
systemjs/dist/system-polyfills
.js"
></script>
<script
src=
"node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"
></script>
<script
src=
"node_modules/
angular2/es6/dev/src/testing/shims_for_IE
.js"
></script>
<script
src=
"node_modules/angular2/bundles/angular2-polyfills.js"
></script>
<script
src=
"node_modules/systemjs/dist/system.src.js"
></script>
<script
src=
"node_modules/rxjs/bundles/Rx.js"
></script>
...
...
@@ -15,7 +15,7 @@
<!-- 2. Configure SystemJS -->
<script>
System
.
config
({
packages
:
{
packages
:
{
app
:
{
format
:
'
register
'
,
defaultExtension
:
'
js
'
...
...
protractor.config.js
View file @
97171be1
...
...
@@ -49,6 +49,8 @@ exports.config = {
// console.log('browser.params:' + JSON.stringify(browser.params));
jasmine
.
getEnv
().
addReporter
(
new
Reporter
(
browser
.
params
))
;
global
.
sendKeys
=
sendKeys
;
// Allow changing bootstrap mode to NG1 for upgrade tests
global
.
setProtractorToNg1Mode
=
function
()
{
browser
.
useAllAngular2AppRoots
=
false
;
...
...
@@ -64,14 +66,11 @@ exports.config = {
}
};
// Hack - because of bug with send keys
// Hack - because of bug with
protractor
send keys
function
sendKeys
(
element
,
str
)
{
return
str
.
split
(
''
).
reduce
(
function
(
promise
,
char
)
{
return
promise
.
then
(
function
()
{
return
element
.
sendKeys
(
char
);
});
return
promise
.
resolve
(
element
.
sendKeys
(
char
));
},
element
.
getAttribute
(
'
value
'
));
// better to create a resolved promise here but ... don't know how with protractor;
}
// Custom reporter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment