| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |