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

Side by Side Diff: Source/core/dom/DOMImplementationTest.cpp

Issue 1171323003: Fix unit test style in core/{dom,editing,html}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whitespace fix 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/AttrTest.cpp ('k') | Source/core/dom/DocumentMarkerControllerTest.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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 15 matching lines...) Expand all
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27 * OF THE POSSIBILITY OF SUCH DAMAGE. 27 * OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "core/dom/DOMImplementation.h" 31 #include "core/dom/DOMImplementation.h"
32 32
33 #include "wtf/text/WTFString.h" 33 #include "wtf/text/WTFString.h"
34 #include <gtest/gtest.h> 34 #include <gtest/gtest.h>
35 35
36 using namespace blink; 36 namespace blink {
37
38 namespace {
39 37
40 TEST(DOMImplementationTest, TextMIMEType) 38 TEST(DOMImplementationTest, TextMIMEType)
41 { 39 {
42 EXPECT_TRUE(DOMImplementation::isTextMIMEType("text/plain")); 40 EXPECT_TRUE(DOMImplementation::isTextMIMEType("text/plain"));
43 EXPECT_TRUE(DOMImplementation::isTextMIMEType("text/javascript")); 41 EXPECT_TRUE(DOMImplementation::isTextMIMEType("text/javascript"));
44 EXPECT_TRUE(DOMImplementation::isTextMIMEType("TEXT/JavaScript")); 42 EXPECT_TRUE(DOMImplementation::isTextMIMEType("TEXT/JavaScript"));
45 EXPECT_TRUE(DOMImplementation::isTextMIMEType("application/json")); 43 EXPECT_TRUE(DOMImplementation::isTextMIMEType("application/json"));
46 EXPECT_TRUE(DOMImplementation::isTextMIMEType("application/jSON")); 44 EXPECT_TRUE(DOMImplementation::isTextMIMEType("application/jSON"));
47 EXPECT_TRUE(DOMImplementation::isTextMIMEType("application/json;foo=2")); 45 EXPECT_TRUE(DOMImplementation::isTextMIMEType("application/json;foo=2"));
48 EXPECT_TRUE(DOMImplementation::isTextMIMEType("application/json ")); 46 EXPECT_TRUE(DOMImplementation::isTextMIMEType("application/json "));
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/x-custom+exml")); 86 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/x-custom+exml"));
89 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("text/html")); 87 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("text/html"));
90 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/xml;")); 88 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/xml;"));
91 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/xml ")); 89 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/xml "));
92 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/x-what+xml;")); 90 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/x-what+xml;"));
93 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/x-tra+xML;a=2")); 91 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/x-tra+xML;a=2"));
94 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/+xML")); 92 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/+xML"));
95 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/+xml")); 93 EXPECT_FALSE(DOMImplementation::isXMLMIMEType("application/+xml"));
96 } 94 }
97 95
98 } 96 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/AttrTest.cpp ('k') | Source/core/dom/DocumentMarkerControllerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698