test(core): add a standalone test for every component with a test

This commit is contained in:
Brandy Carney
2017-12-08 13:09:17 -05:00
parent 42243952dd
commit 2ebdb366b9
38 changed files with 1489 additions and 18 deletions

View File

@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="UTF-8">
<title>Loading - Standalone</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script src="/dist/ionic.js"></script>
</head>
<body>
<ion-button expand="block" onclick="presentLoading()" class="e2eShowLoading">Show Loading</ion-button>
<ion-loading-controller></ion-loading-controller>
<script>
async function presentLoading() {
const loadingController = document.querySelector('ion-loading-controller');
await loadingController.componentOnReady();
const loadingElement = await loadingController.create({
message: 'Hellooo',
duration: 2000
});
return await loadingElement.present();
}
</script>
</body>
</html>