| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 const int kfakeTouchId = 7; | 101 const int kfakeTouchId = 7; |
| 102 | 102 |
| 103 class TouchActionTest : public ::testing::Test { | 103 class TouchActionTest : public ::testing::Test { |
| 104 public: | 104 public: |
| 105 TouchActionTest() | 105 TouchActionTest() |
| 106 : m_baseURL("http://www.test.com/") | 106 : m_baseURL("http://www.test.com/") |
| 107 { | 107 { |
| 108 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU
RL), "touch-action-tests.css"); | 108 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU
RL), "touch-action-tests.css"); |
| 109 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU
RL), "touch-action-tests.js"); | 109 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU
RL), "touch-action-tests.js"); |
| 110 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU
RL), "white-1x1.png"); |
| 110 } | 111 } |
| 111 | 112 |
| 112 void TearDown() override | 113 void TearDown() override |
| 113 { | 114 { |
| 114 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); | 115 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); |
| 115 } | 116 } |
| 116 | 117 |
| 117 protected: | 118 protected: |
| 118 void runTouchActionTest(std::string file); | 119 void runTouchActionTest(std::string file); |
| 119 void runShadowDOMTest(std::string file); | 120 void runShadowDOMTest(std::string file); |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 { | 339 { |
| 339 runShadowDOMTest("touch-action-shadow-dom.html"); | 340 runShadowDOMTest("touch-action-shadow-dom.html"); |
| 340 } | 341 } |
| 341 | 342 |
| 342 TEST_F(TouchActionTest, Pan) | 343 TEST_F(TouchActionTest, Pan) |
| 343 { | 344 { |
| 344 runTouchActionTest("touch-action-pan.html"); | 345 runTouchActionTest("touch-action-pan.html"); |
| 345 } | 346 } |
| 346 | 347 |
| 347 } // namespace blink | 348 } // namespace blink |
| OLD | NEW |