aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/menu
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/menu
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/menu')
-rw-r--r--tests/visual/menu/menu.html24
1 files changed, 9 insertions, 15 deletions
diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html
index c71f50ff4..9bbaa95e1 100644
--- a/tests/visual/menu/menu.html
+++ b/tests/visual/menu/menu.html
@@ -4,13 +4,15 @@
<meta charset="utf-8">
<title>Menu Visual Test: Default</title>
<link rel="stylesheet" href="../../../themes/base/all.css">
- <script src="../../../external/jquery/jquery.js"></script>
- <script src="../../../ui/core.js"></script>
- <script src="../../../ui/widget.js"></script>
- <script src="../../../ui/position.js"></script>
- <script src="../../../ui/menu.js"></script>
- <script>
- $(function() {
+ <style>
+ .ui-menu { width: 250px; margin-bottom: 2em; }
+ .menu4 { height: 225px; overflow-y: auto; overflow-x: hidden; }
+ .address-item { border-bottom: 1px solid #999; }
+ .address-header { display: block; margin-bottom: .2em; font-weight: bold; }
+ .address-content { display: block; margin-bottom: .2em; padding-left: 10px; }
+ </style>
+ <script src="../../../external/requirejs/require.js"></script>
+ <script src="../../../demos/bootstrap.js">
function logger( event, ui ) {
$( "<p>" ).text( "Selected: " + ui.item.text() ).appendTo( "#log" );
}
@@ -42,15 +44,7 @@
items: "> :not('.ui-menu-group')",
select: logger
});
- });
</script>
- <style>
- .ui-menu { width: 250px; margin-bottom: 2em; }
- .menu4 { height: 225px; overflow-y: auto; overflow-x: hidden; }
- .address-item { border-bottom: 1px solid #999; }
- .address-header { display: block; margin-bottom: .2em; font-weight: bold; }
- .address-content { display: block; margin-bottom: .2em; padding-left: 10px; }
- </style>
</head>
<body>