     has_uncommitted_changes: () =>
         return @_patches_table?.has_uncommitted_changes()
 
-    ###
-    _test_random_edit: () =>
-        s = @to_str()
-        i = misc.randint(0, s.length-1)
-        if Math.random() <= .2
-            # delete text
-            s = s.slice(0,i) + s.slice(i-misc.randint(1,25))
-        else
-            # insert about 25 characters at random
-            s = s.slice(0,i) + Math.random().toString(36).slice(2) + s.slice(i)
-        @_doc = @_from_str(s)
-
-    test_random_edits: (opts) =>
-        opts = defaults opts,
-            number : 5
-            cb     : undefined
-    ###
-
 exports.SyncDoc = SyncDoc
 
 # Immutable string document that satisfies our spec.

                if err
                    cb(err)
                else
                    if not @_client.is_project() and @_patch_list.count() == 0
                        @_patches_table.once 'change', =>
                            @emit('change')
                            @emit('connected')
                            cb()
                    else
                        @emit('change')
                        @emit('connected')
                        cb()
            )

    # Delete the synchronized string and **all** patches from the database -- basically

            doctype           : {type:'string'}

###
Used for testing
###
synctable = require('./synctable')
