Ejemplo n.º 1
0
        protected SrmDocument Wait()
        {
            int revision    = WaitRevision;
            var newDocument = _document;

            do
            {
                newDocument = _waitForLoaded
                    ? AbstractFunctionalTest.WaitForDocumentChangeLoaded(newDocument, _waitMillis)
                    : AbstractFunctionalTest.WaitForDocumentChange(newDocument);
            }while (newDocument.RevisionIndex < revision);
            return(newDocument);
        }
Ejemplo n.º 2
0
        protected SrmDocument Wait()
        {
            int revision    = WaitRevision;
            var newDocument = _document;

            do
            {
                newDocument = _waitForLoaded
                    ? AbstractFunctionalTest.WaitForDocumentChangeLoaded(newDocument, _waitMillis)
                    : AbstractFunctionalTest.WaitForDocumentChange(newDocument);
            }
            // Unlogged changes can cause a lack of document revision increment
            while (_revisionIncrement.HasValue && newDocument.RevisionIndex < revision);
            return(newDocument);
        }