• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML>
2<!--
3  -- Copyright (c) 2011 The Chromium Authors. All rights reserved.
4  -- Use of this source code is governed by a BSD-style license that can be
5  -- found in the LICENSE file.
6  -->
7<html>
8  <head>
9    <style>
10      body {
11        font-family: sans-serif;
12      }
13
14      #screen {
15        position: relative;
16        width: 800px;
17        height: 620px;
18
19        background-image: -webkit-linear-gradient(top, #c6c6c6, #888);
20      }
21
22      #dialog {
23        position: absolute;
24        left: 40px;
25        top: 20px;
26        width: 720px;
27        height: 580px;
28        border-radius: 4px;
29        border: none;
30        -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
31        background-color: white;
32      }
33
34      #default-path {
35        width: 20em;
36      }
37    </style>
38
39    <script src='js/util.js'></script>
40    <script src='js/harness.js'></script>
41
42    <title>File Manager Test Harness</title>
43  </head>
44  <body>
45    [ <a href='main.html'
46         >Full Page</a> |
47      <a href='javascript:harness.changeParam("type", "saveas-file")'
48         >Save File</a> |
49    <a href='javascript:harness.changeParam("type", "open-file")'
50       >Open File</a> |
51    <a href='javascript:harness.changeParam("type", "open-multi-file")'
52       >Open Files</a> |
53    <a href='javascript:harness.changeParam("type", "folder")'
54       >Select Folder</a> ],
55    Default Path: <input id=default-path>
56    <a href='javascript:harness.changePath()'>Go</a>
57    <div id=screen>
58      <iframe id=dialog></iframe>
59    </div>
60    <div>
61      <button onclick='harness.onClearClick(event)'>Reset Filesystem</button>
62      | Add Files:
63      <input type='file' multiple onchange='harness.onFilesChange(event)'>
64    </div>
65
66    <script>harness.init()</script>
67  </body>
68</html>
69