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

Side by Side Diff: third_party/WebKit/Source/core/dom/ElementTest.cpp

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/Element.h" 5 #include "core/dom/Element.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/html/HTMLHtmlElement.h" 9 #include "core/html/HTMLHtmlElement.h"
10 #include "core/testing/DummyPageHolder.h" 10 #include "core/testing/DummyPageHolder.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 TEST(ElementTest, SupportsFocus) 15 TEST(ElementTest, SupportsFocus)
16 { 16 {
17 OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(); 17 OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create();
18 Document& document = pageHolder->document(); 18 Document& document = pageHolder->document();
19 ASSERT(isHTMLHtmlElement(document.documentElement())); 19 DCHECK(isHTMLHtmlElement(document.documentElement()));
20 document.setDesignMode("on"); 20 document.setDesignMode("on");
21 document.view()->updateAllLifecyclePhases(); 21 document.view()->updateAllLifecyclePhases();
22 EXPECT_TRUE(document.documentElement()->supportsFocus()) 22 EXPECT_TRUE(document.documentElement()->supportsFocus())
23 << "<html> with designMode=on should be focusable."; 23 << "<html> with designMode=on should be focusable.";
24 } 24 }
25 25
26 } // namespace blink 26 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementRareData.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698