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

Side by Side Diff: Source/web/tests/PageSerializerTest.cpp

Issue 1178483002: Merge page serializers [5/12] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/web/tests/WebPageNewSerializerTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 EXPECT_TRUE(isSerialized("import.html", "text/html")); 267 EXPECT_TRUE(isSerialized("import.html", "text/html"));
268 EXPECT_TRUE(isSerialized("import/base.css", "text/css")); 268 EXPECT_TRUE(isSerialized("import/base.css", "text/css"));
269 EXPECT_TRUE(isSerialized("import/relative/red-background.css", "text/css")); 269 EXPECT_TRUE(isSerialized("import/relative/red-background.css", "text/css"));
270 EXPECT_TRUE(isSerialized("import/absolute/green-header.css", "text/css")); 270 EXPECT_TRUE(isSerialized("import/absolute/green-header.css", "text/css"));
271 } 271 }
272 272
273 TEST_F(PageSerializerTest, XMLDeclaration) 273 TEST_F(PageSerializerTest, XMLDeclaration)
274 { 274 {
275 V8TestingScope scope(v8::Isolate::GetCurrent()); 275 V8TestingScope scope(v8::Isolate::GetCurrent());
276 setBaseFolder("pageserializer/xmldecl/"); 276 setBaseFolder("pageserializer/xml/");
277 277
278 registerURL("xmldecl.xml", "text/xml"); 278 registerURL("xmldecl.xml", "text/xml");
279 serialize("xmldecl.xml"); 279 serialize("xmldecl.xml");
280 280
281 String expectedStart("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); 281 String expectedStart("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
282 EXPECT_TRUE(getSerializedData("xmldecl.xml").startsWith(expectedStart)); 282 EXPECT_TRUE(getSerializedData("xmldecl.xml").startsWith(expectedStart));
283 } 283 }
284 284
285 TEST_F(PageSerializerTest, DTD) 285 TEST_F(PageSerializerTest, DTD)
286 { 286 {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 registerURL("namespace_element.html", "text/html"); 366 registerURL("namespace_element.html", "text/html");
367 367
368 serialize("namespace_element.html"); 368 serialize("namespace_element.html");
369 369
370 EXPECT_EQ(1U, getResources().size()); 370 EXPECT_EQ(1U, getResources().size());
371 EXPECT_TRUE(isSerialized("namespace_element.html", "text/html")); 371 EXPECT_TRUE(isSerialized("namespace_element.html", "text/html"));
372 EXPECT_GT(getSerializedData("namespace_element.html", "text/html").length(), 0U); 372 EXPECT_GT(getSerializedData("namespace_element.html", "text/html").length(), 0U);
373 } 373 }
374 374
375 } 375 }
OLDNEW
« no previous file with comments | « no previous file | Source/web/tests/WebPageNewSerializerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698