| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 }); |
| OLD | NEW |