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

Side by Side Diff: LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js

Issue 14373016: DevTools: [HeapProfiler] Provide API for heap objects tracking info. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: jank -> junk Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/heap-profiler/heap-objects-tracking.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 2 * Copyright (C) 2012 Samsung Electronics. 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 92
93 /** 93 /**
94 * @param {string} scriptName 94 * @param {string} scriptName
95 */ 95 */
96 InspectorTest.importScript = function(scriptName) 96 InspectorTest.importScript = function(scriptName)
97 { 97 {
98 var xhr = new XMLHttpRequest(); 98 var xhr = new XMLHttpRequest();
99 xhr.open("GET", scriptName, false); 99 xhr.open("GET", scriptName, false);
100 xhr.send(null); 100 xhr.send(null);
101 window.eval(xhr.responseText); 101 window.eval(xhr.responseText + "\n//@ sourceURL=" + scriptName);
102 } 102 }
103 103
104 window.addEventListener("message", function(event) { 104 window.addEventListener("message", function(event) {
105 try { 105 try {
106 eval(event.data); 106 eval(event.data);
107 } catch (e) { 107 } catch (e) {
108 alert(e.stack); 108 alert(e.stack);
109 InspectorTest.completeTest(); 109 InspectorTest.completeTest();
110 throw e; 110 throw e;
111 } 111 }
112 }); 112 });
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/heap-profiler/heap-objects-tracking.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698