Add dev server script

This commit is contained in:
Niklas von Hertzen
2017-09-03 21:25:06 +08:00
parent 1a53643457
commit 0f9f8ff494
4 changed files with 72 additions and 6 deletions

View File

@ -117,7 +117,8 @@ const assertPath = (result, expected, desc) => {
return testContainer.contentWindow
.html2canvas(testContainer.contentWindow.document.documentElement, {
removeContainer: true,
backgroundColor: '#ffffff'
backgroundColor: '#ffffff',
...(testContainer.contentWindow.h2cOptions || {})
})
.then(canvas => {
try {
@ -388,7 +389,7 @@ const assertPath = (result, expected, desc) => {
version: platform.version
}
}),
'http://localhost:8081/screenshot/chunk'
'http://localhost:8000/screenshot/chunk'
)
)
);
@ -407,7 +408,7 @@ const assertPath = (result, expected, desc) => {
version: platform.version
}
}),
'http://localhost:8081/screenshot'
'http://localhost:8000/screenshot'
);
}
});