Commit eaf8bd76 authored by abarth@chromium.org's avatar abarth@chromium.org

Extend silk benchmark of navigation drawer

This CL adds a second test case for inbox_app's navigation drawer that toggles
the drawer open and closed using the toolbar button.

R=nduca@chromium.org
BUG=332439

Review URL: https://codereview.chromium.org/130433003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243956 0039d316-1c4b-4281-b951-d872f2087c98
parent c4ccd274
...@@ -136,7 +136,25 @@ ...@@ -136,7 +136,25 @@
"smoothness": { "action": "wait", "seconds": 5 } "smoothness": { "action": "wait", "seconds": 5 }
}, },
{ {
"url": "file://key_silk_cases/inbox_app.html", "url": "file://key_silk_cases/inbox_app.html?toggle_drawer",
"navigate_steps" : [
{ "action": "navigate" },
{ "action": "wait", "seconds": 2 }
],
"smoothness": {
"action": "toggle_drawer",
"repeat": 6
},
"toggle_drawer": [
{
"action": "click_element",
"selector": "#menu-button"
},
{ "action": "wait", "seconds": 1 }
]
},
{
"url": "file://key_silk_cases/inbox_app.html?slide_drawer",
"navigate_steps" : [ "navigate_steps" : [
{ "action": "navigate" }, { "action": "navigate" },
{ "action": "wait", "seconds": 2 } { "action": "wait", "seconds": 2 }
......
...@@ -2658,7 +2658,10 @@ polymer-ui-icon { ...@@ -2658,7 +2658,10 @@ polymer-ui-icon {
</app-frame> </app-frame>
<script> <script>
document.addEventListener('WebComponentsReady', function() { document.addEventListener('WebComponentsReady', function() {
// document.getElementById('menu-button').addEventListener('click', function() { document.getElementById('nav-drawer').toggle();
});
document.getElementById('menu-button').addEventListener('click', function() {
document.getElementById('nav-drawer').toggle(); document.getElementById('nav-drawer').toggle();
}); });
</script> </script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment