| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import json | 5 import json |
| 6 import logging | 6 import logging |
| 7 import os | 7 import os |
| 8 import time | 8 import time |
| 9 from distutils.version import LooseVersion | 9 from distutils.version import LooseVersion |
| 10 from PIL import Image | 10 from PIL import Image |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 self._ispy.PerformComparison( | 151 self._ispy.PerformComparison( |
| 152 test_run, | 152 test_run, |
| 153 self._GetExpectationNameWithVersion( | 153 self._GetExpectationNameWithVersion( |
| 154 device_type, expectation, chrome_version), | 154 device_type, expectation, chrome_version), |
| 155 screenshot) | 155 screenshot) |
| 156 | 156 |
| 157 def GetScriptToWaitForUnchangingDOM(self): | 157 def GetScriptToWaitForUnchangingDOM(self): |
| 158 """Returns a JavaScript script that waits for the DOM to stop changing.""" | 158 """Returns a JavaScript script that waits for the DOM to stop changing.""" |
| 159 return self._wait_for_unchanging_dom_script | 159 return self._wait_for_unchanging_dom_script |
| 160 | 160 |
| OLD | NEW |