| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/page/WindowFeatures.h" | 5 #include "core/page/WindowFeatures.h" |
| 6 | 6 |
| 7 #include <gtest/gtest.h> | 7 #include <gtest/gtest.h> |
| 8 #include "wtf/text/WTFString.h" | 8 #include "wtf/text/WTFString.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 {"something, something", false}, | 21 {"something, something", false}, |
| 22 {"notnoopener", false}, | 22 {"notnoopener", false}, |
| 23 {"noopener", true}, | 23 {"noopener", true}, |
| 24 {"something, noopener", true}, | 24 {"something, noopener", true}, |
| 25 {"noopener, something", true}, | 25 {"noopener, something", true}, |
| 26 {"NoOpEnEr", true}, | 26 {"NoOpEnEr", true}, |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 for (const auto& test : cases) { | 29 for (const auto& test : cases) { |
| 30 WindowFeatures features(test.featureString); | 30 WindowFeatures features(test.featureString); |
| 31 EXPECT_EQ(test.noopener, features.noopener) << "Testing '" | 31 EXPECT_EQ(test.noopener, features.noopener) |
| 32 << test.featureString << "'"; | 32 << "Testing '" << test.featureString << "'"; |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace blink | 36 } // namespace blink |
| OLD | NEW |