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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/elements-img-tooltip.html

Issue 2747553002: [DevTools] Rework Popover API (Closed)
Patch Set: rebased Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 3
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script> 6 <script>
7 7
8 var test = function() 8 var test = function()
9 { 9 {
10 10
11 var treeElement; 11 var treeElement;
12 InspectorTest.nodeWithId("image", step1); 12 InspectorTest.nodeWithId("image", step1);
13 13
14 function step1(node) 14 function step1(node)
15 { 15 {
16 InspectorTest.firstElementsTreeOutline()._loadDimensionsForNode(node, st ep2); 16 InspectorTest.firstElementsTreeOutline()._loadDimensionsForNode(node).th en(step2);
17 } 17 }
18 18
19 function step2(dimensions) 19 function step2(dimensions)
20 { 20 {
21 const EXPECTED_WIDTH = 215; 21 const EXPECTED_WIDTH = 215;
22 const EXPECTED_HEIGHT = 174; 22 const EXPECTED_HEIGHT = 174;
23 23
24 if (!dimensions) 24 if (!dimensions)
25 InspectorTest.addResult("FAILED, no dimensions on treeElement."); 25 InspectorTest.addResult("FAILED, no dimensions on treeElement.");
26 else { 26 else {
(...skipping 17 matching lines...) Expand all
44 44
45 <body onload="runTest()"> 45 <body onload="runTest()">
46 <p> 46 <p>
47 Tests the tooltip for the image on hover. 47 Tests the tooltip for the image on hover.
48 </p> 48 </p>
49 49
50 <img id="image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANcAAACuCAIAA AAqMg/rAAAAAXNSR0IArs4c6QAAAU9JREFUeNrt0jERAAAIxDDAv+dHAxNLIqHXTlLwaiTAheBCXAgux IXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCX AguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7Eh eBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcC C7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSFEuBCcCEuBBfiQnAhLgQX4kJwIS4EF +JCcCEuBBfiQnAhLgQX4kJwIS4EF+JCcCEuBBfiQnAhLgQX4kJwIS4EF+JCcCEuBBfiQnAhLoSDBZXqB FnkRyeqAAAAAElFTkSuQmCC"/> 50 <img id="image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANcAAACuCAIAA AAqMg/rAAAAAXNSR0IArs4c6QAAAU9JREFUeNrt0jERAAAIxDDAv+dHAxNLIqHXTlLwaiTAheBCXAgux IXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCX AguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7Eh eBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSF4EJcC C7EheBCXAguxIXgQlwILsSF4EJcCC7EheBCXAguxIXgQlwILsSFEuBCcCEuBBfiQnAhLgQX4kJwIS4EF +JCcCEuBBfiQnAhLgQX4kJwIS4EF+JCcCEuBBfiQnAhLgQX4kJwIS4EF+JCcCEuBBfiQnAhLoSDBZXqB FnkRyeqAAAAAElFTkSuQmCC"/>
51 51
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698