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 13 matching lines...) Expand all Loading... |
24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
28 * OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 | 32 |
33 #include "bindings/core/v8/V8Binding.h" | 33 #include "bindings/core/v8/V8Binding.h" |
| 34 #include "bindings/core/v8/V8TestingScope.h" |
34 #include "core/page/Page.h" | 35 #include "core/page/Page.h" |
35 #include "core/page/PageSerializer.h" | 36 #include "core/page/PageSerializer.h" |
36 #include "core/testing/URLTestHelpers.h" | 37 #include "core/testing/URLTestHelpers.h" |
37 #include "platform/SerializedResource.h" | 38 #include "platform/SerializedResource.h" |
38 #include "public/platform/Platform.h" | 39 #include "public/platform/Platform.h" |
39 #include "public/platform/WebString.h" | 40 #include "public/platform/WebString.h" |
40 #include "public/platform/WebThread.h" | 41 #include "public/platform/WebThread.h" |
41 #include "public/platform/WebURL.h" | 42 #include "public/platform/WebURL.h" |
42 #include "public/platform/WebURLRequest.h" | 43 #include "public/platform/WebURLRequest.h" |
43 #include "public/platform/WebURLResponse.h" | 44 #include "public/platform/WebURLResponse.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 197 |
197 registerURL("font.html", "text/html"); | 198 registerURL("font.html", "text/html"); |
198 registerURL("font.ttf", "application/octet-stream"); | 199 registerURL("font.ttf", "application/octet-stream"); |
199 | 200 |
200 serialize("font.html"); | 201 serialize("font.html"); |
201 | 202 |
202 EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream")); | 203 EXPECT_TRUE(isSerialized("font.ttf", "application/octet-stream")); |
203 } | 204 } |
204 | 205 |
205 } | 206 } |
OLD | NEW |