Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Unified Diff: third_party/JSON/JSON-2.59/t/xe01_property.t

Issue 183763019: Remove third_party/JSON (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/JSON/JSON-2.59/t/x17_strange_overload.t ('k') | third_party/JSON/JSON-2.59/t/xe02_bool.t » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/JSON/JSON-2.59/t/xe01_property.t
diff --git a/third_party/JSON/JSON-2.59/t/xe01_property.t b/third_party/JSON/JSON-2.59/t/xe01_property.t
deleted file mode 100644
index 6b894cd96002311725a74aecdf6eaa04000c090d..0000000000000000000000000000000000000000
--- a/third_party/JSON/JSON-2.59/t/xe01_property.t
+++ /dev/null
@@ -1,56 +0,0 @@
-
-use Test::More;
-use strict;
-
-BEGIN { plan tests => 90 };
-
-BEGIN { $ENV{PERL_JSON_BACKEND} = 1; }
-
-
-use JSON;
-
-SKIP: {
- skip "can't use JSON::XS.", 90, unless( JSON->backend->is_xs );
-
-my @simples =
- qw/ascii latin1 utf8 indent canonical space_before space_after allow_nonref shrink allow_blessed
- convert_blessed relaxed
- /;
-
-my $json = new JSON;
-
-for my $name (@simples) {
- my $method = 'get_' . $name;
- ok(! $json->$method(), $method . ' default');
- $json->$name();
- ok($json->$method(), $method . ' set true');
- $json->$name(0);
- ok(! $json->$method(), $method . ' set false');
- $json->$name();
- ok($json->$method(), $method . ' set true again');
-}
-
-
-ok($json->get_max_depth == 512, 'get_max_depth default');
-$json->max_depth(7);
-ok($json->get_max_depth == 7, 'get_max_depth set 7 => 7');
-$json->max_depth();
-ok($json->get_max_depth != 0, 'get_max_depth no arg');
-
-ok($json->get_max_size == 0, 'get_max_size default');
-$json->max_size(7);
-ok($json->get_max_size == 7, 'get_max_size set 7 => 7');
-$json->max_size();
-ok($json->get_max_size == 0, 'get_max_size no arg');
-
-
-for my $name (@simples) {
- $json->$name();
- ok($json->property($name), $name);
- $json->$name(0);
- ok(! $json->property($name), $name);
- $json->$name();
- ok($json->property($name), $name);
-}
-
-}
« no previous file with comments | « third_party/JSON/JSON-2.59/t/x17_strange_overload.t ('k') | third_party/JSON/JSON-2.59/t/xe02_bool.t » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698