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

Issue 261058: Unit test for https://bugs.webkit.org/show_bug.cgi?id=30262... (Closed)

Created:
11 years, 2 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
eseidel
CC:
chromium-reviews_googlegroups.com, darin (slow to review), pam+watch_chromium.org, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M webkit/tools/webcore_unit_tests/GKURL_unittest.cpp View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
darin (slow to review)
11 years, 2 months ago (2009-10-10 03:53:07 UTC) #1
eseidel
11 years, 2 months ago (2009-10-10 05:02:02 UTC) #2
LGTM.

On Fri, Oct 9, 2009 at 11:53 PM,  <darin@chromium.org> wrote:
> Reviewers: Eric Seidel (Google),
>
> Description:
> Unit test for https://bugs.webkit.org/show_bug.cgi?id=3D30262
>
> R=3Deseidel
> BUG=3Dnone
> TEST=3Dnone
>
>
> Please review this at http://codereview.chromium.org/261058
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
> =A0M =A0 =A0 webkit/tools/webcore_unit_tests/GKURL_unittest.cpp
>
>
> Index: webkit/tools/webcore_unit_tests/GKURL_unittest.cpp
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- webkit/tools/webcore_unit_tests/GKURL_unittest.cpp =A0(revision 28588=
)
> +++ webkit/tools/webcore_unit_tests/GKURL_unittest.cpp =A0(working copy)
> @@ -599,3 +599,13 @@
> =A0 EXPECT_NE(dest.string().characters(), src.string().characters());
> =A0 EXPECT_NE(dest.utf8String().data(), src.utf8String().data());
> =A0}
> +
> +TEST(GKURL, ProtocolIs) {
> + =A0WebCore::KURL url1(WebCore::ParsedURLString,"foo://bar");
> + =A0EXPECT_TRUE(url1.protocolIs("foo"));
> + =A0EXPECT_FALSE(url1.protocolIs("foo-bar"));
> +
> + =A0WebCore::KURL url2(WebCore::ParsedURLString,"foo-bar:");
> + =A0EXPECT_TRUE(url2.protocolIs("foo-bar"));
> + =A0EXPECT_FALSE(url2.protocolIs("foo"));
> +}
>
>
>

Powered by Google App Engine
This is Rietveld 408576698