| <!DOCTYPE HTML> |
| <!-- |
| -- Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| -- Use of this source code is governed by a BSD-style license that can be |
| -- found in the LICENSE file. |
| --> |
| <html> |
| <head> |
| <style> |
| body { |
| font-family: sans-serif; |
| } |
| |
| #screen { |
| position: relative; |
| width: 1034px; |
| height: 680px; |
| |
| background-image: -webkit-linear-gradient(top, #c6c6c6, #888); |
| } |
| |
| #dialog { |
| position: absolute; |
| left: 40px; |
| top: 20px; |
| width: 954px; |
| height: 640px; |
| border: none; |
| -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1); |
| background-color: white; |
| } |
| |
| #default-path { |
| width: 20em; |
| } |
| </style> |
| |
| <script src='js/util.js'></script> |
| <script src='js/harness.js'></script> |
| <script src="js/mock_chrome.js"></script> |
| |
| <title>File Manager Test Harness</title> |
| </head> |
| <body> |
| [ <a href='main.html' |
| >Full Page</a> | |
| <a href='javascript:harness.changeParam("type", "saveas-file")' |
| >Save File</a> | |
| <a href='javascript:harness.changeParam("type", "open-file")' |
| >Open File</a> | |
| <a href='javascript:harness.changeParam("type", "open-multi-file")' |
| >Open Files</a> | |
| <a href='javascript:harness.changeParam("type", "folder")' |
| >Select Folder</a> ], |
| Default Path: <input id=default-path> |
| <a href='javascript:harness.changePath()'>Go</a> |
| <div id=screen> |
| <iframe id=dialog></iframe> |
| </div> |
| <div> |
| Add Files: |
| <input type='file' multiple onchange='harness.onFilesChange(event)'> |
| <button onclick='harness.onClearClick(event)'>Reset Filesystem</button> |
| <button onclick='harness.onPopulateClick()'>Auto-populate</button> |
| </div> |
| |
| <script>harness.init()</script> |
| </body> |
| </html> |