mirror of
https://github.com/konvajs/konva.git
synced 2026-01-18 19:51:21 +08:00
updated tests
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user