-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(toggle): add tests for ionic theme
- Loading branch information
1 parent
7fe9dbe
commit 8c4870a
Showing
8 changed files
with
166 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/components/toggle/test/enable-on-off-labels/toggle.e2e.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr" theme="ionic"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Toggle - Basic</title> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" | ||
/> | ||
<link href="../../../../../css/ionic.bundle.css" rel="stylesheet" /> | ||
<link href="../../../../../scripts/testing/styles.css" rel="stylesheet" /> | ||
<script src="../../../../../scripts/testing/scripts.js"></script> | ||
<script nomodule src="../../../../../dist/ionic/ionic.js"></script> | ||
<script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script> | ||
<style> | ||
h2 { | ||
font-size: 12px; | ||
font-weight: normal; | ||
|
||
color: #6f7378; | ||
|
||
margin-top: 10px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<ion-app> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>Toggle - Basic</ion-title> | ||
<ion-buttons slot="primary"> | ||
<ion-toggle aria-label="Enable Notifications"></ion-toggle> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
|
||
<ion-content id="content" class="ion-padding"> | ||
<div class="grid"> | ||
<ion-toggle> | ||
This is a very very very very very very very very very very very very very very | ||
very very very very very very very very very very very very long text | ||
</ion-toggle> | ||
|
||
<h1>Placement</h1> | ||
<ion-toggle label-placement="start"> | ||
Label Placement = Start | ||
</ion-toggle> | ||
|
||
<ion-toggle label-placement="end"> | ||
Label Placement = End | ||
</ion-toggle> | ||
|
||
<h1>States</h1> | ||
<ion-toggle>Unchecked</ion-toggle> | ||
|
||
|
||
<ion-toggle checked="true">Checked</ion-toggle> | ||
|
||
|
||
<ion-toggle class="ion-focused">Focused</ion-toggle> | ||
|
||
|
||
<ion-toggle class="ion-activated" checked="true">Pressed, Checked</ion-toggle> | ||
|
||
|
||
<ion-toggle class="ion-activated">Pressed, Unchecked</ion-toggle> | ||
|
||
|
||
<ion-toggle disabled="true">Disabled, Unchecked</ion-toggle> | ||
|
||
|
||
<ion-toggle disabled="true" checked="true">Disabled, Checked</ion-toggle> | ||
|
||
|
||
<h1>EnableOnOffLabels = true</h1> | ||
<ion-toggle enable-on-off-labels="true" checked>Checked</ion-toggle> | ||
|
||
|
||
<ion-toggle enable-on-off-labels="true">Unchecked</ion-toggle> | ||
|
||
|
||
<h1>Colors</h1> | ||
<ion-toggle color="success" checked>Success</ion-toggle> | ||
|
||
|
||
<ion-toggle color="danger" checked>Danger</ion-toggle> | ||
|
||
</div> | ||
</ion-content> | ||
</ion-app> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters