Skip to content

Commit

Permalink
Add traceLog.getOpenCloseTags
Browse files Browse the repository at this point in the history
  • Loading branch information
anseki committed Oct 8, 2016
1 parent b1765ab commit d6e9679
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/attachment-label/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/bindWindow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/effect-show/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/mask/cases.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="../../src/defs.js"></script>
<script src="../../src/anim.js"></script>
<script src="../../src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="../../node_modules/anim-event/anim-event.js"></script>
<script src="../traceLog.js"></script>
<script src="../../src/leader-line.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/reflow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/spec/bbox/coordinates.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/spec/bbox/nested-window.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/spec/bbox/scroll.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/spec/common/page-c1.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>
<style>
Expand Down
1 change: 1 addition & 0 deletions test/spec/common/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>
<style>
Expand Down
1 change: 1 addition & 0 deletions test/spec/socket/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script src="/src/defs.js"></script>
<script src="/src/anim.js"></script>
<script src="/src/path-data-polyfill/path-data-polyfill.js"></script>
<script src="/anim-event.min.js"></script>
<script src="/traceLog.js"></script>
<script src="/src/leader-line.js"></script>
<style>
Expand Down
2 changes: 2 additions & 0 deletions test/traceLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var traceLog = (function() {
traceLog = {
log: [],
enabled: false,
getOpenCloseTags: false, // Contain tags for TaggedLog

add: function() {
var message, i, matches, tagName, iStack;
Expand All @@ -56,6 +57,7 @@ var traceLog = (function() {
tagStack.push(tagName);
tags[tagName] = tags[tagName] || [];
}
if (traceLog.getOpenCloseTags) { tags[tagName].push(i); }
} else if (tagStack.length) {
tags[tagStack[tagStack.length - 1]].push(i);
}
Expand Down

0 comments on commit d6e9679

Please sign in to comment.