Bug 1162067: Add some debugging output to test_Debugger.Source.prototype.element.html, to catch intermittent failures. r=jlongster

--HG--
extra : rebase_source : 93672173ca2a30e50885d602be48bd1111502557
This commit is contained in:
Jim Blandy 2015-05-06 14:04:32 -07:00
Родитель 4a15da718a
Коммит 48654d46b8
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -91,6 +91,7 @@ window.onload = function () {
// Try a dynamically inserted out-of-line script element.
isolde = doc.createElement('script');
isolde.setAttribute('src', 'Debugger.Source.prototype.element-2.js');
isolde.setAttribute('id', 'idolde, my dear');
dbg.onDebuggerStatement = isoldeDebuggerHandler;
doc.body.appendChild(isolde);
}
@ -101,8 +102,16 @@ window.onload = function () {
// The top frame should belong to isolde.
ok(frame.script.source.element === DOFor(isolde),
"top frame belongs to isolde");
info("frame.script.source.element is: " + uneval(frame.script.source.element));
if (typeof frame.script.source.element.unsafeDereference() == 'object') {
info(" toString: " + frame.script.source.element.unsafeDereference());
info(" id: " + frame.script.source.element.unsafeDereference().id);
}
ok(frame.script.source.elementAttributeName === undefined,
"top frame source is not an attribute of isolde");
info("frame.script.source.elementAttributeName is: " +
uneval(frame.script.source.elementAttributeName));
// Try a dynamically created div element with a handler.
dieter = doc.createElement('div');