updated tests

This commit is contained in:
Eric Rowell
2013-08-10 14:30:17 -07:00
parent 35db1f7a8b
commit 12ed500570
2 changed files with 5 additions and 14 deletions

View File

@@ -2,11 +2,11 @@
<html>
<body>
<h1>KineticJS Test Suite</h1>
<p>atomated test counts updated on 06-02-2013</p>
<p>atomated test counts updated on 08-10-2013</p>
<ul>
<li><a href="unitTests.html">Unit Tests (724)</a></li>
<li><a href="functionalTests.html">Functional Tests (171)</a></li>
<li><a href="visualTests.html">Visual Tests (46)</a></li>
<li><a href="unitTests.html">Unit Tests (793)</a></li>
<li><a href="functionalTests.html">Functional Tests (172)</a></li>
<li><a href="visualTests.html">Visual Tests (53)</a></li>
<li><a href="manualTests.html">Manual Tests</a></li>
<li><a href="performanceTests.html">Performance Tests</a></li>
<li><a href="special/index.html">Special Tests</a></li>

View File

@@ -564,25 +564,16 @@ Test.Modules.EVENT = {
events.push('layer-draw');
});
stage.on('draw', function(evt) {
events.push('stage-draw');
});
layer.on('beforeDraw', function(evt) {
events.push('layer-beforeDraw');
});
stage.on('beforeDraw', function(evt) {
events.push('stage-beforeDraw');
});
layer.add(circle);
stage.add(layer);
console.log(events.toString())
test(events.toString() === 'layer-beforeDraw,stage-beforeDraw,layer-draw,stage-draw', 'draw event order is incorrect');
test(events.toString() === 'layer-beforeDraw,layer-draw', 'draw event order is incorrect');
},