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

Unified Diff: trunk/src/third_party/JSON/JSON-2.59/t/22_comment_at_eof.t

Issue 16539003: Revert 205057 "Add JSON.pm to third_party" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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
Index: trunk/src/third_party/JSON/JSON-2.59/t/22_comment_at_eof.t
===================================================================
--- trunk/src/third_party/JSON/JSON-2.59/t/22_comment_at_eof.t (revision 205060)
+++ trunk/src/third_party/JSON/JSON-2.59/t/22_comment_at_eof.t (working copy)
@@ -1,47 +0,0 @@
-# the oritinal test case was provided by IKEGAMI@cpan.org
-
-use strict;
-
-use Test::More tests => 13;
-
-BEGIN { $ENV{PERL_JSON_BACKEND} = "JSON::backportPP"; }
-
-use JSON;
-
-use Data::Dumper qw( Dumper );
-
-sub decoder {
- my ($str) = @_;
-
- my $json = JSON->new->relaxed;
-
- $json->incr_parse($_[0]);
-
- my $rv;
- if (!eval { $rv = $json->incr_parse(); 1 }) {
- $rv = "died with $@";
- }
-
- local $Data::Dumper::Useqq = 1;
- local $Data::Dumper::Terse = 1;
- local $Data::Dumper::Indent = 0;
-
- return Dumper($rv);
-}
-
-
-is( decoder( "[]" ), '[]', 'array baseline' );
-is( decoder( " []" ), '[]', 'space ignored before array' );
-is( decoder( "\n[]" ), '[]', 'newline ignored before array' );
-is( decoder( "# foo\n[]" ), '[]', 'comment ignored before array' );
-is( decoder( "# fo[o\n[]"), '[]', 'comment ignored before array' );
-is( decoder( "# fo]o\n[]"), '[]', 'comment ignored before array' );
-is( decoder( "[# fo]o\n]"), '[]', 'comment ignored inside array' );
-
-is( decoder( "" ), 'undef', 'eof baseline' );
-is( decoder( " " ), 'undef', 'space ignored before eof' );
-is( decoder( "\n" ), 'undef', 'newline ignored before eof' );
-is( decoder( "#,foo\n" ), 'undef', 'comment ignored before eof' );
-is( decoder( "# []o\n" ), 'undef', 'comment ignored before eof' );
-
-is( decoder( qq/#\n[#foo\n"#\\n"#\n]/), '["#\n"]', 'array and string in multiple lines' );
« no previous file with comments | « trunk/src/third_party/JSON/JSON-2.59/t/21_evans_bugrep.t ('k') | trunk/src/third_party/JSON/JSON-2.59/t/99_binary.t » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698