diff options
author | dmaclach <dmaclach@google.com> | 2016-10-07 12:10:23 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-10-07 12:21:06 -0400 |
commit | 42124b3691197c3c4f52f069775fa0390a8ff942 (patch) | |
tree | ebd373d398ea64b45bdc1d196fa0a2c5f57cabfd /Foundation/TestData/GTMURITemplateExtraTests.json | |
parent | 57eeab4193210df8ab0c81e9d3f1ee1ad3e24492 (diff) |
First cut at pruning things/updating things.
Remove a bunch of code that Google stopped using/maintaining rather than trying
to update it it. Some would be hard to update, some actually has system provided
replacements; others are patterns that just don't seem as common now.
Prune out the code related to macOS <= 10.5, start pruning some of the really
old iOS support also.
Get the projects mostly limping again with modern Xcodes so tests can be run.
If someone ends up on this commit via history for something they still find
as useful, feel free to do a pull request to bring the snippet of code back to
life and update it for current SDKs.
Diffstat (limited to 'Foundation/TestData/GTMURITemplateExtraTests.json')
-rw-r--r-- | Foundation/TestData/GTMURITemplateExtraTests.json | 222 |
1 files changed, 0 insertions, 222 deletions
diff --git a/Foundation/TestData/GTMURITemplateExtraTests.json b/Foundation/TestData/GTMURITemplateExtraTests.json deleted file mode 100644 index e84ab90..0000000 --- a/Foundation/TestData/GTMURITemplateExtraTests.json +++ /dev/null @@ -1,222 +0,0 @@ -{ - "No varspec (section 3.3, paragraph 3)" : - { - "variables": { - "var" : "value" - }, - "testcases" : [ - ["{}", "{}"], - ["{,}", "{,}"], - ["{,,}", "{,,}"] - ] - }, - "Missing closing brace (section 3.3 paragraph 4)" : - { - "variables": { - "var" : "value", - "hello" : "Hello World!", - "list" : [ "val1", "val2", "val3" ], - "keys" : {"key1": "val1", "key2": "val2"}, - "x" : "1024", - "y" : "768" - }, - "testcases" : [ - ["{var", "value"], - ["{hello", "Hello%20World%21"], - ["{x,y", "1024,768"], - ["{var=default", "value"], - ["{undef=default", "default"], - ["{list", "val1,val2,val3"], - ["{list*", "val1,val2,val3"], - ["{list+", "list.val1,list.val2,list.val3"], - ["{keys", "key1,val1,key2,val2"], - ["{keys*", "key1,val1,key2,val2"], - ["{keys+", "keys.key1,val1,keys.key2,val2"] - ] - }, - "varspec of only operator and explodes (section 3.3?)" : - { - "variables": { - "var" : "value" - }, - "testcases" : [ - ["{+}", "{+}"], - ["{;}", "{;}"], - ["{?}", "{?}"], - ["{/}", "{/}"], - ["{.}", "{.}"], - ["{+,}", "{+,}"], - ["{;,}", "{;,}"], - ["{?,}", "{?,}"], - ["{/,}", "{/,}"], - ["{.,}", "{.,}"], - ["{++}", "{++}"], - ["{;+}", "{;+}"], - ["{?+}", "{?+}"], - ["{/+}", "{/+}"], - ["{.+}", "{.+}"], - ["{+*}", "{+*}"], - ["{;*}", "{;*}"], - ["{?*}", "{?*}"], - ["{/*}", "{/*}"], - ["{.*}", "{.*}"] - ] - }, - "One good varspec and bad varspecs (section 3.3, paragraph 3?)" : - { - "variables": { - "var" : "value" - }, - "testcases" : [ - ["{var,}", "value"], - ["{,var}", "value"], - ["{,var,,}", "value"], - ["{+var,,}", "value"], - ["{;var,,}", ";var=value"], - ["{?var,,}", "?var=value"], - ["{/var,,}", "/value"], - ["{.var,,}", ".value"], - ["{+,var,}", "value"], - ["{;,var,}", ";var=value"], - ["{?,var,}", "?var=value"], - ["{/,var,}", "/value"], - ["{.,var,}", ".value"], - ["{+,,var}", "value"], - ["{;,,var}", ";var=value"], - ["{?,,var}", "?var=value"], - ["{/,,var}", "/value"], - ["{.,,var}", ".value"] - ] - }, - "Multiple undefined variables (section 3.4)" : - { - "variables": { - "var" : "value" - }, - "testcases" : [ - ["{undef1,undef2}", ""], - ["{+undef1,undef2}", ""], - ["{;undef1,undef2}", ""], - ["{?undef1,undef2}", ""], - ["{/undef1,undef2}", ""], - ["{.undef1,undef2}", ""] - ] - }, - "Default with variable in varspec (just reported like above cases)" : - { - "variables": { - "var" : "value" - }, - "testcases" : [ - ["{=foo}", "{=foo}"] - ] - }, - "varspec with bad partial (partial gets ignored)" : - { - "variables": { - "var" : "value" - }, - "testcases" : [ - ["{var:}", "value"], - ["{var^}", "value"] - ] - }, - "Default of empty string and edge cases with empty strings" : - { - "variables": { - "empty" : "", - "x" : "1024", - "y" : "768" - }, - "testcases" : [ - ["{empty}", ""], - ["{;x,empty,y}", ";x=1024;empty;y=768"], - ["{?x,empty,y}", "?x=1024&empty&y=768"], - ["{x,empty,y}", "1024,,768"], - ["{+x,empty,y}", "1024,,768"], - ["{/x,empty,y}", "/1024//768"], - ["{.x,empty,y}", ".1024..768"], - ["{undef=}", ""], - ["{;x,undef=,y}", ";x=1024;undef;y=768"], - ["{?x,undef=,y}", "?x=1024&undef&y=768"], - ["{x,undef=,y}", "1024,,768"], - ["{+x,undef=,y}", "1024,,768"], - ["{/x,undef=,y}", "/1024//768"], - ["{.x,undef=,y}", ".1024..768"] - ] - }, - "Two defaults for one variable" : - { - "variables": { - "y" : "768" - }, - "testcases" : [ - ["1{undef=a}2{undef=b}3", "1a2b3"], - ["0{undef}1{undef=a}2{undef}3{undef=b}4{undef}5", "01a2a3b4b5"] - ] - }, - "Empty strings within arrays and associative arrays" : - { - "variables": { - "list" : [ "val1", "", "val3" ], - "keysA" : {"key1": "", "key2": "val2"}, - "keysB" : {"key1": "val1", "": "val2"} - }, - "testcases" : [ - ["{list}", "val1,,val3"], - ["{list*}", "val1,,val3"], - ["{list+}", "list.val1,list.,list.val3"], - ["{keysA}", "key1,,key2,val2"], - ["{keysA*}", "key1,,key2,val2"], - ["{keysA+}", "keysA.key1,,keysA.key2,val2"], - ["{keysB}", ",val2,key1,val1"], - ["{keysB*}", ",val2,key1,val1"], - ["{keysB+}", "keysB.,val2,keysB.key1,val1"], - ["{+list}", "val1,,val3"], - ["{+list*}", "val1,,val3"], - ["{+list+}", "list.val1,list.,list.val3"], - ["{+keysA}", "key1,,key2,val2"], - ["{+keysA*}", "key1,,key2,val2"], - ["{+keysA+}", "keysA.key1,,keysA.key2,val2"], - ["{+keysB}", ",val2,key1,val1"], - ["{+keysB*}", ",val2,key1,val1"], - ["{+keysB+}", "keysB.,val2,keysB.key1,val1"], - ["{;list}", ";val1,,val3"], - ["{;list*}", ";val1;;val3"], - ["{;list+}", ";list=val1;list=;list=val3"], - ["{;keysA}", ";key1,key2,val2"], - ["{;keysA*}", ";key1;key2=val2"], - ["{;keysA+}", ";keysA.key1;keysA.key2=val2"], - ["{;keysB}", ";,val2,key1,val1"], - ["{;keysB*}", ";=val2;key1=val1"], - ["{;keysB+}", ";keysB.=val2;keysB.key1=val1"], - ["{?list}", "?list=val1,,val3"], - ["{?list*}", "?val1&&val3"], - ["{?list+}", "?list=val1&list=&list=val3"], - ["{?keysA}", "?keysA=key1,key2,val2"], - ["{?keysA*}", "?key1&key2=val2"], - ["{?keysA+}", "?keysA.key1&keysA.key2=val2"], - ["{?keysB}", "?keysB=,val2,key1,val1"], - ["{?keysB*}", "?=val2&key1=val1"], - ["{?keysB+}", "?keysB.=val2&keysB.key1=val1"], - ["{/list}", "/val1,,val3"], - ["{/list*}", "/val1//val3"], - ["{/list+}", "/list.val1/list./list.val3"], - ["{/keysA}", "/key1,,key2,val2"], - ["{/keysA*}", "/key1//key2/val2"], - ["{/keysA+}", "/keysA.key1//keysA.key2/val2"], - ["{/keysB}", "/,val2,key1,val1"], - ["{/keysB*}", "//val2/key1/val1"], - ["{/keysB+}", "/keysB./val2/keysB.key1/val1"], - ["X{.list}", "X.val1,,val3"], - ["X{.list*}", "X.val1..val3"], - ["X{.list+}", "X.list.val1.list..list.val3"], - ["X{.keysA}", "X.key1,,key2,val2"], - ["X{.keysA*}", "X.key1..key2.val2"], - ["X{.keysA+}", "X.keysA.key1..keysA.key2.val2"], - ["X{.keysB}", "X.,val2,key1,val1"], - ["X{.keysB*}", "X..val2.key1.val1"], - ["X{.keysB+}", "X.keysB..val2.keysB.key1.val1"] - ] - } -} |