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

Unified Diff: Tools/Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl

Issue 1253013003: Remove all perl scripts from Tools/Scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove the python code to invoke Perl \o/ Created 5 years, 5 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: Tools/Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl
diff --git a/Tools/Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl b/Tools/Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl
deleted file mode 100644
index dc364a5a98f0fbb875033bf5e3c412c551ace189..0000000000000000000000000000000000000000
--- a/Tools/Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/perl -w
-#
-# Copyright (C) 2011 Research In Motion Limited. All rights reserved.
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-# Unit tests of VCSUtils::parseFirstEOL().
-
-use strict;
-use warnings;
-
-use Test::Simple tests => 7;
-use VCSUtils;
-
-my $title;
-
-# New test
-$title = "parseFirstEOL: Empty string.";
-ok(!defined(firstEOLInString("")), $title);
-
-# New test
-$title = "parseFirstEOL: Line without a line ending character";
-ok(!defined(firstEOLInString("This line doesn't have a line ending character.")), $title);
-
-# New test
-$title = "parseFirstEOL: Line with Windows line ending.";
-ok(firstEOLInString("This line ends with a Windows line ending.\r\n") eq "\r\n", $title);
-
-# New test
-$title = "parseFirstEOL: Line with Unix line ending.";
-ok(firstEOLInString("This line ends with a Unix line ending.\n") eq "\n", $title);
-
-# New test
-$title = "parseFirstEOL: Line with Mac line ending.";
-ok(firstEOLInString("This line ends with a Mac line ending.\r") eq "\r", $title);
-
-# New test
-$title = "parseFirstEOL: Line with Mac line ending followed by line without a line ending.";
-ok(firstEOLInString("This line ends with a Mac line ending.\rThis line doesn't have a line ending.") eq "\r", $title);
-
-# New test
-$title = "parseFirstEOL: Line with a mix of line endings.";
-ok(firstEOLInString("This line contains a mix of line endings.\r\n\r\n\r\r\n\n\n\n") eq "\r\n", $title);
-
-sub firstEOLInString
-{
- my ($string) = @_;
- my $fileHandle;
- open($fileHandle, "<", \$string);
- return parseFirstEOL($fileHandle);
-}

Powered by Google App Engine
This is Rietveld 408576698