Index: tests/io-toggle.html |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/tests/io-toggle.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <meta charset="utf-8"> |
+ <title>Test io-toggle.js</title> |
+ <link rel="stylesheet" href="../skin/common.css"> |
+ <link rel="stylesheet" href="../skin/fonts.css"> |
+ <link rel="stylesheet" href="../skin/desktop-options.css"> |
+ <style> |
+ fieldset { |
+ margin: 4px; |
+ padding: 8px; |
+ border: 1px solid silver; |
+ line-height: 0; |
+ } |
+ </style> |
+ <script defer src="../polyfill.js"></script> |
+ <script defer src="../ext/common.js"></script> |
+ <script defer src="../ext/content.js"></script> |
+ <script defer src="../common.js"></script> |
+ <script defer src="../i18n.js"></script> |
+ <script defer src="./io-toggle.js"></script> |
+ </head> |
+ <body style="background:white;"> |
+ <fieldset><io-toggle onchange="console.log(event)"></io-toggle></fieldset> |
+ <fieldset><io-toggle checked></io-toggle></fieldset> |
+ <fieldset><io-toggle disabled></io-toggle></fieldset> |
+ <fieldset><io-toggle checked disabled></io-toggle></fieldset> |
+ </body> |
+</html> |