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

Side by Side Diff: LayoutTests/dart/dom/Cache.dart

Issue 9188009: Things to unfork. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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
« no previous file with comments | « LayoutTests/dart/dom/CSS-expected.txt ('k') | LayoutTests/dart/dom/Cache.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #import('../../../../../dart/client/testing/unittest/unittest.dart');
2 #import('dart:dom');
3
4 main() {
5 forLayoutTests();
6 test('ApplicationCache', () {
7 DOMApplicationCache appCache = window.applicationCache;
8 Expect.equals("UNCACHED", cacheStatusToString(appCache.status));
9 });
10 }
11
12 String cacheStatusToString(int status) {
13 switch (status) {
14 case DOMApplicationCache.UNCACHED: // UNCACHED == 0
15 return 'UNCACHED';
16 case DOMApplicationCache.IDLE: // IDLE == 1
17 return 'IDLE';
18 case DOMApplicationCache.CHECKING: // CHECKING == 2
19 return 'CHECKING';
20 case DOMApplicationCache.DOWNLOADING: // DOWNLOADING == 3
21 return 'DOWNLOADING';
22 case DOMApplicationCache.UPDATEREADY: // UPDATEREADY == 4
23 return 'UPDATEREADY';
24 case DOMApplicationCache.OBSOLETE: // OBSOLETE == 5
25 return 'OBSOLETE';
26 default:
27 return 'UNKNOWN CACHE STATUS';
28 };
29 }
OLDNEW
« no previous file with comments | « LayoutTests/dart/dom/CSS-expected.txt ('k') | LayoutTests/dart/dom/Cache.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698