Fix race condition in test

The |done| function comes from |it| not |describe|. Previously, we were just
ending the test right away.

R=rafaelw@chromium.org

Review URL: https://codereview.chromium.org/754463003
This commit is contained in:
Adam Barth
2014-11-21 16:08:31 -08:00
parent 96eb53d4ef
commit a1b7d730ce

View File

@@ -4,8 +4,8 @@
This test verifies that the height of an editable block remains the same after adding block elements and removing them.
<div contenteditable="true" style="border: solid blue" id="test"></div>
<script>
describe("height of an editable block", function(done) {
it("remains the same after adding block elements and removing them", function() {
describe("height of an editable block", function() {
it("remains the same after adding block elements and removing them", function(done) {
var elem = document.getElementById("test");
var originalHeight = elem.offsetHeight;
var d = elem.appendChild(document.createElement('div'));