- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / session_restore / common.js
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function runTest() {
6   var old_value = readData();
7   if (!writeData())
8     return 'ERROR_WRITE_FAILED';
9   var new_value = readData();
10   if (new_value == '')
11     return 'ERROR_EMPTY';
12   if (old_value === new_value)
13     return 'PASS';
14   return 'STORING';
15 }
16
17 function onLoad() {
18   document.title = runTest();
19 }