瀏覽代碼

Merge pull request #106 from ckeditor/t/105

Tests: Fixed failing test in Safari and Firefox. Closes #105.
Szymon Kupś 8 年之前
父節點
當前提交
797d72c858
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/ckeditor5-core/tests/editor/standardeditor.js

+ 3 - 0
packages/ckeditor5-core/tests/editor/standardeditor.js

@@ -345,6 +345,9 @@ describe( 'StandardEditor', () => {
 		} );
 
 		it( 'should not replace submit() method when one of the elements in a form is named "submit"', () => {
+			// Restore stub since we want to mask submit function with input with name="submit".
+			submitStub.restore();
+
 			const input = document.createElement( 'input' );
 			input.setAttribute( 'name', 'submit' );
 			form.appendChild( input );