Created
August 23, 2013 09:42
-
-
Save OlavHN/6317446 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0d54f904cebce9cad031af8e5dd6b040d3f314f3 Mon Sep 17 00:00:00 2001 | |
From: Olav Nymoen <olav@comoyo.com> | |
Date: Fri, 23 Aug 2013 11:40:57 +0200 | |
Subject: [PATCH] testing datastores | |
--- | |
apps/test/index.html | 2 ++ | |
apps/test/manifest.webapp | 26 ++++++++++++++++++++++++++ | |
apps/test/source.js | 7 +++++++ | |
3 files changed, 35 insertions(+) | |
create mode 100644 apps/test/index.html | |
create mode 100644 apps/test/manifest.webapp | |
create mode 100644 apps/test/source.js | |
diff --git a/apps/test/index.html b/apps/test/index.html | |
new file mode 100644 | |
index 0000000..305f95f | |
--- /dev/null | |
+++ b/apps/test/index.html | |
@@ -0,0 +1,2 @@ | |
+<script src="source.js"></script> | |
+HELLO WORLD!! | |
diff --git a/apps/test/manifest.webapp b/apps/test/manifest.webapp | |
new file mode 100644 | |
index 0000000..30212bd | |
--- /dev/null | |
+++ b/apps/test/manifest.webapp | |
@@ -0,0 +1,26 @@ | |
+{ | |
+ "name": "testee", | |
+ "description": "testing app", | |
+ "type": "certified", | |
+ "launch_path": "/index.html", | |
+ "developer": { | |
+ "name": "The Gaia Team", | |
+ "url": "https://github.com/mozilla-b2g/gaia" | |
+ }, | |
+ "datastores-owned": { | |
+ "kake": { | |
+ "readonly": true, | |
+ "name": "kake" | |
+ } | |
+ }, | |
+ "datastores-access": { | |
+ "kake": { | |
+ "access": "readonly", | |
+ "description": "..cookies" | |
+ } | |
+ }, | |
+ "permissions": { | |
+ }, | |
+ "icons": { | |
+ } | |
+} | |
diff --git a/apps/test/source.js b/apps/test/source.js | |
new file mode 100644 | |
index 0000000..8c5f2d8 | |
--- /dev/null | |
+++ b/apps/test/source.js | |
@@ -0,0 +1,7 @@ | |
+navigator.getDataStores("kake").then(function(stores) { | |
+ dump('Hello world!'); | |
+ dump(stores); | |
+ dump('bye world'); | |
+}, function(err) { | |
+ dump('stores no', err); | |
+}); | |
-- | |
1.8.2.1 (Apple Git-45) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment