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

Side by Side Diff: third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp

Issue 2384033002: reflow comments in web/tests (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 "<meta http-equiv=\"Content-Type\" content=\"text/html; " 281 "<meta http-equiv=\"Content-Type\" content=\"text/html; "
282 "charset=EUC-KR\">"; 282 "charset=EUC-KR\">";
283 EXPECT_TRUE(getSerializedData("encoded_iframe.html", "text/html") 283 EXPECT_TRUE(getSerializedData("encoded_iframe.html", "text/html")
284 .contains(expectedMetaCharset)); 284 .contains(expectedMetaCharset));
285 EXPECT_TRUE(getSerializedData("encoded_iframe.html", "text/html") 285 EXPECT_TRUE(getSerializedData("encoded_iframe.html", "text/html")
286 .contains("\xE4\xC5\xD1\xE2")); 286 .contains("\xE4\xC5\xD1\xE2"));
287 EXPECT_FALSE(getSerializedData("encoded_iframe.html", "text/html") 287 EXPECT_FALSE(getSerializedData("encoded_iframe.html", "text/html")
288 .contains("\xE4\xC5\xE4\xC5")); 288 .contains("\xE4\xC5\xE4\xC5"));
289 } 289 }
290 290
291 // Tests that when serializing a page with blank frames these are reported with their resources. 291 // Tests that when serializing a page with blank frames these are reported with
292 // their resources.
292 TEST_F(FrameSerializerTest, BlankFrames) { 293 TEST_F(FrameSerializerTest, BlankFrames) {
293 setBaseFolder("frameserializer/frames/"); 294 setBaseFolder("frameserializer/frames/");
294 295
295 registerURL("blank_frames.html", "text/html"); 296 registerURL("blank_frames.html", "text/html");
296 registerURL("red_background.png", "image.png", "image/png"); 297 registerURL("red_background.png", "image.png", "image/png");
297 registerURL("orange_background.png", "image.png", "image/png"); 298 registerURL("orange_background.png", "image.png", "image/png");
298 registerURL("blue_background.png", "image.png", "image/png"); 299 registerURL("blue_background.png", "image.png", "image/png");
299 300
300 serialize("blank_frames.html"); 301 serialize("blank_frames.html");
301 302
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 KURL(ParsedURLString, "http://foo.com?--"))); 526 KURL(ParsedURLString, "http://foo.com?--")));
526 EXPECT_EQ("saved from url=(0020)http://foo.com/#-%2D", 527 EXPECT_EQ("saved from url=(0020)http://foo.com/#-%2D",
527 FrameSerializer::markOfTheWebDeclaration( 528 FrameSerializer::markOfTheWebDeclaration(
528 KURL(ParsedURLString, "http://foo.com#--"))); 529 KURL(ParsedURLString, "http://foo.com#--")));
529 EXPECT_EQ("saved from url=(0026)http://foo.com/#bar-%2Dbaz", 530 EXPECT_EQ("saved from url=(0026)http://foo.com/#bar-%2Dbaz",
530 FrameSerializer::markOfTheWebDeclaration( 531 FrameSerializer::markOfTheWebDeclaration(
531 KURL(ParsedURLString, "http://foo.com#bar--baz"))); 532 KURL(ParsedURLString, "http://foo.com#bar--baz")));
532 } 533 }
533 534
534 } // namespace blink 535 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698