queryCommandState
Method test sample