Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: content/test/data/dom_storage/common.js

Issue 9956117: DomStorageBrowserTest sanity check (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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 debug(message) {
6 var span = document.createElement("span");
7 span.appendChild(document.createTextNode(message));
8 span.appendChild(document.createElement("br"));
9 document.getElementById('status').appendChild(span);
10 }
11
12 function done(message) {
13 if (document.location.hash == '#fail')
14 return;
15 if (message)
16 debug('PASS: ' + message);
17 else
18 debug('PASS');
19 document.location.hash = '#pass';
20 }
21
22 function fail(message) {
23 debug('FAILED: ' + message);
24 document.location.hash = '#fail';
25 }
26
27 function getLog() {
28 return "" + document.getElementById('status').innerHTML;
29 }
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_browsertest.cc ('k') | content/test/data/dom_storage/sanity_check.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698