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

Side by Side Diff: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html

Issue 1211813002: DevTools: allow injecting CSS rules without breaking styles sidebar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed. Created 5 years, 6 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
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 /** 241 /**
242 * Evaluates string in page. 242 * Evaluates string in page.
243 * @param {string} message 243 * @param {string} message
244 * @param {!function} callback 244 * @param {!function} callback
245 */ 245 */
246 InspectorTest.evaluateInPage = function(string, callback) 246 InspectorTest.evaluateInPage = function(string, callback)
247 { 247 {
248 this.sendCommand("Runtime.evaluate", { "expression": string }, function(mess age) { 248 this.sendCommand("Runtime.evaluate", { "expression": string }, function(mess age) {
249 if (message.error) 249 if (message.error)
250 InspectorTest.log("Error while executing '" + string + "': " + messa ge.error.message); 250 InspectorTest.log("Error while executing '" + string + "': " + messa ge.error.message);
251 else 251 else if (callback)
252 callback(); 252 callback();
253 }); 253 });
254 }; 254 };
255 255
256 InspectorTest.completeTestIfError = function(messageObject) 256 InspectorTest.completeTestIfError = function(messageObject)
257 { 257 {
258 if (messageObject.error) { 258 if (messageObject.error) {
259 InspectorTest.log(messageObject.error.message); 259 InspectorTest.log(messageObject.error.message);
260 InspectorTest.completeTest(); 260 InspectorTest.completeTest();
261 return true; 261 return true;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 function enableInspectorAgent() 302 function enableInspectorAgent()
303 { 303 {
304 InspectorTest.sendCommand("Inspector.enable", { }); 304 InspectorTest.sendCommand("Inspector.enable", { });
305 } 305 }
306 306
307 window.addEventListener("load", enableInspectorAgent, false); 307 window.addEventListener("load", enableInspectorAgent, false);
308 308
309 </script> 309 </script>
310 </head> 310 </head>
311 </html> 311 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698