8
0
فهرست منبع

Internal: Fixed manual test.

Maciej Bukowski 6 سال پیش
والد
کامیت
404a30b2cf
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      packages/ckeditor5-watchdog/tests/manual/watchdog.js

+ 4 - 4
packages/ckeditor5-watchdog/tests/manual/watchdog.js

@@ -75,12 +75,12 @@ function createWatchdog( editorElement, stateElement, name ) {
 		console.log( `${ name } editor restarted.` );
 		console.log( `${ name } editor restarted.` );
 	} );
 	} );
 
 
-	watchdog.on( 'change:state', ( evt, paramName, currentValue, prevValue ) => {
-		console.log( `${ name } watchdog changed state from ${ prevValue } to ${ currentValue }` );
+	watchdog.on( 'stateChange', () => {
+		console.log( `${ name } watchdog state changed to '${ watchdog.state }'` );
 
 
-		stateElement.innerText = currentValue;
+		stateElement.innerText = watchdog.state;
 
 
-		if ( currentValue === 'crashedPermanently' ) {
+		if ( watchdog.state === 'crashedPermanently' ) {
 			watchdog.editor.isReadOnly = true;
 			watchdog.editor.isReadOnly = true;
 		}
 		}
 	} );
 	} );