| OLD | NEW |
| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 InspectorTest.expectedError = InspectorTest.checkExpectation.bind(null, true); | 280 InspectorTest.expectedError = InspectorTest.checkExpectation.bind(null, true); |
| 281 | 281 |
| 282 /** | 282 /** |
| 283 * @param {string} scriptName | 283 * @param {string} scriptName |
| 284 */ | 284 */ |
| 285 InspectorTest.importScript = function(scriptName) | 285 InspectorTest.importScript = function(scriptName) |
| 286 { | 286 { |
| 287 var xhr = new XMLHttpRequest(); | 287 var xhr = new XMLHttpRequest(); |
| 288 xhr.open("GET", scriptName, false); | 288 xhr.open("GET", scriptName, false); |
| 289 xhr.send(null); | 289 xhr.send(null); |
| 290 window.eval(xhr.responseText + "\n//@ sourceURL=" + scriptName); | 290 window.eval(xhr.responseText + "\n//# sourceURL=" + scriptName); |
| 291 } | 291 } |
| 292 | 292 |
| 293 InspectorTest.safeWrap = function(func, onexception) | 293 InspectorTest.safeWrap = function(func, onexception) |
| 294 { | 294 { |
| 295 function result() | 295 function result() |
| 296 { | 296 { |
| 297 if (!func) | 297 if (!func) |
| 298 return; | 298 return; |
| 299 var wrapThis = this; | 299 var wrapThis = this; |
| 300 try { | 300 try { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 function enableInspectorAgent() | 378 function enableInspectorAgent() |
| 379 { | 379 { |
| 380 InspectorTest.sendCommand("Inspector.enable", { }); | 380 InspectorTest.sendCommand("Inspector.enable", { }); |
| 381 } | 381 } |
| 382 | 382 |
| 383 window.addEventListener("load", enableInspectorAgent, false); | 383 window.addEventListener("load", enableInspectorAgent, false); |
| 384 | 384 |
| 385 </script> | 385 </script> |
| 386 </head> | 386 </head> |
| 387 </html> | 387 </html> |
| OLD | NEW |