OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 compareSubscription( | 75 compareSubscription( |
76 test, "http://test/default_titled", ["url=http://test/default_titled", "titl
e=test"], | 76 test, "http://test/default_titled", ["url=http://test/default_titled", "titl
e=test"], |
77 subscription => | 77 subscription => |
78 { | 78 { |
79 subscription.title = "test"; | 79 subscription.title = "test"; |
80 } | 80 } |
81 ); | 81 ); |
82 compareSubscription( | 82 compareSubscription( |
83 test, "http://test/non_default", | 83 test, "http://test/non_default", |
84 [ | 84 [ |
85 "url=http://test/non_default", "title=test", "disabled=true", | 85 "url=http://test/non_default", "type=ads", "title=test", "disabled=true", |
86 "lastSuccess=8", "lastDownload=12", "lastCheck=16", "softExpiration=18", | 86 "lastSuccess=8", "lastDownload=12", "lastCheck=16", "softExpiration=18", |
87 "expires=20", "downloadStatus=foo", "errors=3", "version=24", | 87 "expires=20", "downloadStatus=foo", "errors=3", "version=24", |
88 "requiredVersion=0.6" | 88 "requiredVersion=0.6" |
89 ], | 89 ], |
90 subscription => | 90 subscription => |
91 { | 91 { |
| 92 subscription.type = "ads"; |
92 subscription.title = "test"; | 93 subscription.title = "test"; |
93 subscription.disabled = true; | 94 subscription.disabled = true; |
94 subscription.lastSuccess = 8; | 95 subscription.lastSuccess = 8; |
95 subscription.lastDownload = 12; | 96 subscription.lastDownload = 12; |
96 subscription.lastCheck = 16; | 97 subscription.lastCheck = 16; |
97 subscription.softExpiration = 18; | 98 subscription.softExpiration = 18; |
98 subscription.expires = 20; | 99 subscription.expires = 20; |
99 subscription.downloadStatus = "foo"; | 100 subscription.downloadStatus = "foo"; |
100 subscription.errors = 3; | 101 subscription.errors = 3; |
101 subscription.version = 24; | 102 subscription.version = 24; |
102 subscription.requiredVersion = "0.6"; | 103 subscription.requiredVersion = "0.6"; |
103 } | 104 } |
104 ); | 105 ); |
105 compareSubscription( | 106 compareSubscription( |
106 test, "~wl~", ["url=~wl~", "disabled=true", "title=Test group"], | 107 test, "~wl~", ["url=~wl~", "disabled=true", "title=Test group"], |
107 subscription => | 108 subscription => |
108 { | 109 { |
109 subscription.title = "Test group"; | 110 subscription.title = "Test group"; |
110 subscription.disabled = true; | 111 subscription.disabled = true; |
111 } | 112 } |
112 ); | 113 ); |
113 | 114 |
114 test.done(); | 115 test.done(); |
115 }; | 116 }; |
OLD | NEW |