diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2013-12-14 19:19:14 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2013-12-14 19:19:14 +0100 |
commit | f273334212274b1f1c7da376ef186314de8c4428 (patch) | |
tree | 9cbe24ec2aa65f776cf87d1ec37d5d7d48221ade /tests/data | |
parent | a02e62f17f7b51c489e209ab6937ad717fbcfb07 (diff) | |
download | PrismLauncher-f273334212274b1f1c7da376ef186314de8c4428.tar.gz PrismLauncher-f273334212274b1f1c7da376ef186314de8c4428.tar.bz2 PrismLauncher-f273334212274b1f1c7da376ef186314de8c4428.zip |
More tests for the UpdateChecker class. It should be done for now.
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/errorChannels.json | 23 | ||||
-rw-r--r-- | tests/data/garbageChannels.json | 22 | ||||
-rw-r--r-- | tests/data/index.json | 9 |
3 files changed, 54 insertions, 0 deletions
diff --git a/tests/data/errorChannels.json b/tests/data/errorChannels.json new file mode 100644 index 00000000..333cd445 --- /dev/null +++ b/tests/data/errorChannels.json @@ -0,0 +1,23 @@ +{ + "format_version": 0, + "channels": [ + { + "id": "", + "name": "Develop", + "description": "The channel called \"develop\"", + "url": "http://example.org/stuff" + }, + { + "id": "stable", + "name": "", + "description": "It's stable at least", + "url": "ftp://username@host/path/to/stuff" + }, + { + "id": "42", + "name": "The Channel", + "description": "This is the channel that is going to answer all of your questions", + "url": "" + } + ] +} diff --git a/tests/data/garbageChannels.json b/tests/data/garbageChannels.json new file mode 100644 index 00000000..1450fb9c --- /dev/null +++ b/tests/data/garbageChannels.json @@ -0,0 +1,22 @@ +{ + "format_version": 0, + "channels": [ + { + "id": "develop", + "name": "Develop", + "description": "The channel called \"develop\"", +aa "url": "http://example.org/stuff" + }, +a "id": "stable", + "name": "Stable", + "description": "It's stable at least", + "url": "ftp://username@host/path/to/stuff" + }, + { + "id": "42"f + "name": "The Channel", + "description": "This is the channel that is going to answer all of your questions", + "url": "https://dent.me/tea" + } + ] +} diff --git a/tests/data/index.json b/tests/data/index.json new file mode 100644 index 00000000..20ceb9f4 --- /dev/null +++ b/tests/data/index.json @@ -0,0 +1,9 @@ +{ + "ApiVersion": 0, + "Versions": [ + { "Id": 0, "Name": "1.0.0" }, + { "Id": 1, "Name": "1.0.1" }, + { "Id": 2, "Name": "1.0.2" }, + { "Id": 3, "Name": "1.0.3" } + ] +} |