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

Unified Diff: trunk/Source/core/css/parser/MediaQueryTokenizerTest.cpp

Issue 196653020: Revert 169289 "A thread-safe Media Query Parser" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/Source/core/css/parser/MediaQueryTokenizer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/css/parser/MediaQueryTokenizerTest.cpp
===================================================================
--- trunk/Source/core/css/parser/MediaQueryTokenizerTest.cpp (revision 169291)
+++ trunk/Source/core/css/parser/MediaQueryTokenizerTest.cpp (working copy)
@@ -1,27 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "core/css/parser/MediaQueryTokenizer.h"
-
-#include "wtf/PassOwnPtr.h"
-#include <gtest/gtest.h>
-
-namespace WebCore {
-
-typedef pair<String, MediaQueryTokenType* > TestCase;
-TEST(MediaQueryTokenizerTest, Basic)
-{
- Vector<TestCase> testcases;
- MediaQueryTokenType tokenTypeArr[] = {LeftParenthesisToken, IdentToken, ColonToken, WhitespaceToken, PercentageToken, RightParenthesisToken, EOFToken };
- TestCase testCase1("(max-width: 50%)", (MediaQueryTokenType*)&tokenTypeArr);
- testcases.append(testCase1);
- Vector<MediaQueryToken> tokens;
- MediaQueryTokenizer::tokenize(testcases[0].first, tokens);
- for (size_t i = 0; i < tokens.size(); i++) {
- ASSERT_EQ(testcases[0].second[i], tokens[i].type());
- }
-}
-
-} // namespace
« no previous file with comments | « trunk/Source/core/css/parser/MediaQueryTokenizer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698