aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/effects/scale.html
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-09-30 09:49:13 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2015-09-30 17:55:20 +0200
commitb698f809de908535acd93c690d90d867622ddd7e (patch)
tree0929237517ef5edde429a1ab615bcc22222f773b /tests/visual/effects/scale.html
parentc02f59981f4c8aa2c606e22e0325dd34457c8b45 (diff)
downloadjquery-ui-b698f809de908535acd93c690d90d867622ddd7e.tar.gz
jquery-ui-b698f809de908535acd93c690d90d867622ddd7e.zip
Tests: Use demo bootstrap for visual tests
Adds a data-composite option and fixes paths for effects. Otherwise just applies the same conversion as already applied to demos, sometimes moving a <style> element to the right place.
Diffstat (limited to 'tests/visual/effects/scale.html')
-rw-r--r--tests/visual/effects/scale.html71
1 files changed, 33 insertions, 38 deletions
diff --git a/tests/visual/effects/scale.html b/tests/visual/effects/scale.html
index 0723d9458..b032ac896 100644
--- a/tests/visual/effects/scale.html
+++ b/tests/visual/effects/scale.html
@@ -4,12 +4,39 @@
<meta charset="utf-8">
<title>jQuery UI Effects Test Suite</title>
<link rel="stylesheet" href="effects.css">
- <script src="../../../external/jquery/jquery.js"></script>
- <script src="../../../ui/effect.js"></script>
- <script src="../../../ui/effect-scale.js"></script>
- <script src="../../../ui/effect-size.js"></script>
- <script>
- $(function() {
+ <style>
+ #testArea {
+ width: 200px;
+ height: 200px;
+ position: relative;
+ }
+ #testBox {
+ width: 50px;
+ height: 50px;
+ background-color: #bada55;
+ color: black;
+ border: 10px solid #fff;
+ margin: 10px;
+ padding: 10px;
+ position: absolute;
+ left: 5px;
+ top: 5px;
+ }
+ label {
+ display: block;
+ }
+ #controls {
+ position: absolute;
+ z-index: 300;
+ left: 50%;
+ top: 50%;
+ margin-left: -200px;
+ width: 400px;
+ opacity: 0.8;
+ }
+ </style>
+ <script src="../../../external/requirejs/require.js"></script>
+ <script src="../../../demos/bootstrap.js" data-modules="effect-scale" data-composite="true">
var test = $( "#testBox" ),
opts = $( ".arg" ),
optsRev = $( opts.get().reverse() ),
@@ -84,39 +111,7 @@
.delay( 100 )
.effect( effect );
}
- });
</script>
- <style>
- #testArea {
- width: 200px;
- height: 200px;
- position: relative;
- }
- #testBox {
- width: 50px;
- height: 50px;
- background-color: #bada55;
- color: black;
- border: 10px solid #fff;
- margin: 10px;
- padding: 10px;
- position: absolute;
- left: 5px;
- top: 5px;
- }
- label {
- display: block;
- }
- #controls {
- position: absolute;
- z-index: 300;
- left: 50%;
- top: 50%;
- margin-left: -200px;
- width: 400px;
- opacity: 0.8;
- }
- </style>
</head>
<body>