diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 06:03:44 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 06:03:44 +0000 |
commit | 38789d8b022117628f26ddf3d4abe9c47c98d574 (patch) | |
tree | bfd1d1446a3e8c7409d687597db0db3831c19e5e /chrome/test | |
parent | d978840b3799a139f284c413ffe79b03944afa5e (diff) | |
download | chromium_src-38789d8b022117628f26ddf3d4abe9c47c98d574.zip chromium_src-38789d8b022117628f26ddf3d4abe9c47c98d574.tar.gz chromium_src-38789d8b022117628f26ddf3d4abe9c47c98d574.tar.bz2 |
Revert "Revert "Implement web app definition parsing.""
This reverts commit 8d410ce0aae7acbbcd816425ba49e79d8d7b9a1d.
TBR=aa@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/data/web_app_info/full.json | 14 | ||||
-rw-r--r-- | chrome/test/data/web_app_info/invalid_icon_url.json | 8 | ||||
-rw-r--r-- | chrome/test/data/web_app_info/invalid_launch_url.json | 4 | ||||
-rw-r--r-- | chrome/test/data/web_app_info/invalid_urls.json | 9 | ||||
-rw-r--r-- | chrome/test/data/web_app_info/minimal.json | 4 | ||||
-rw-r--r-- | chrome/test/data/web_app_info/missing_name.json | 3 |
6 files changed, 42 insertions, 0 deletions
diff --git a/chrome/test/data/web_app_info/full.json b/chrome/test/data/web_app_info/full.json new file mode 100644 index 0000000..ef38f53 --- /dev/null +++ b/chrome/test/data/web_app_info/full.json @@ -0,0 +1,14 @@ +{ + "name": "hello", + "description": "This app is super awesome", + "launch_url": "launch_url", + "launch_container": "panel", + "permissions": [ "geolocation", "notifications" ], + "urls": [ "foobar", "baz" ], + "icons": { + "ignored": "ignored.png", + "16": "16.png", + // We also ignore this because it is larger than 128. + "500": "500.png" + } +} diff --git a/chrome/test/data/web_app_info/invalid_icon_url.json b/chrome/test/data/web_app_info/invalid_icon_url.json new file mode 100644 index 0000000..3389d26 --- /dev/null +++ b/chrome/test/data/web_app_info/invalid_icon_url.json @@ -0,0 +1,8 @@ +{ + "name": "hello", + "launch_url": "launch_url", + "icons": { + "16", "16.png", + "32": "http://someotherdomain.com/32" + ] +} diff --git a/chrome/test/data/web_app_info/invalid_launch_url.json b/chrome/test/data/web_app_info/invalid_launch_url.json new file mode 100644 index 0000000..3c9c81e --- /dev/null +++ b/chrome/test/data/web_app_info/invalid_launch_url.json @@ -0,0 +1,4 @@ +{ + "name": "hello", + "launch_url": "http://someotherdomain.com/monkey" +} diff --git a/chrome/test/data/web_app_info/invalid_urls.json b/chrome/test/data/web_app_info/invalid_urls.json new file mode 100644 index 0000000..f347073 --- /dev/null +++ b/chrome/test/data/web_app_info/invalid_urls.json @@ -0,0 +1,9 @@ +{ + "name": "hello", + "launch_url": "launch_url", + "urls": [ + "relative", + "http://example.com/valid_absolute", + "http://someotherdomain.com/invalid_absolute" + ] +} diff --git a/chrome/test/data/web_app_info/minimal.json b/chrome/test/data/web_app_info/minimal.json new file mode 100644 index 0000000..e5b6a6a --- /dev/null +++ b/chrome/test/data/web_app_info/minimal.json @@ -0,0 +1,4 @@ +{ + "name": "hello", + "launch_url": "launch_url" +} diff --git a/chrome/test/data/web_app_info/missing_name.json b/chrome/test/data/web_app_info/missing_name.json new file mode 100644 index 0000000..d1833e5 --- /dev/null +++ b/chrome/test/data/web_app_info/missing_name.json @@ -0,0 +1,3 @@ +{ + "launch_url": "monkey" +} |