1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 from webkitpy.layout_tests.controllers import repaint_overlay
11 "bounds":[800.00,600.00],
14 "position": [8.00, 80.00],
15 "bounds": [800.00, 600.00],
16 "contentsOpaque": true,
27 class TestRepaintOverlay(unittest.TestCase):
28 def test_result_contains_repaint_rects(self):
29 self.assertTrue(repaint_overlay.result_contains_repaint_rects(LAYER_TREE))
30 self.assertFalse(repaint_overlay.result_contains_repaint_rects('ABCD'))
32 def test_extract_layer_tree(self):
33 self.assertEquals(LAYER_TREE, repaint_overlay.extract_layer_tree(LAYER_TREE))