chiark / gitweb /
wdt-bundles: vatikan: Have bob load the game
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 23:21:52 +0000 (00:21 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Jul 2021 10:45:31 +0000 (11:45 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-bundles.rs

index 7caeacf82d12ee546dbb85c326df355deac116ff..42476c0bb12240a9e654c2abcb672b8342a56618 100644 (file)
@@ -7,6 +7,7 @@ use crate::*;
 struct Ctx {
   su: Setup,
   alice: Window,
+  bob: Window,
 }
 usual_wanted_tests!{Ctx, su}
 
@@ -18,8 +19,8 @@ impl Ctx {
 }
 
 #[throws(Explode)]
-fn tests(UsualSetup { su, alice, ..}: UsualSetup) {
-  let mut c = Ctx { su, alice };
+fn tests(UsualSetup { su, alice, bob, ..}: UsualSetup) {
+  let mut c = Ctx { su, alice, bob };
 
   test!(c, "bundle", {
     let test_bundle = c.su.ds.example_bundle();
@@ -96,6 +97,13 @@ fn tests(UsualSetup { su, alice, ..}: UsualSetup) {
         .did("draw")?;
       alice.synch()?;
     }
+
+    {
+      let mut bob = c.su.w(&c.bob)?;
+      bob.synch()?;
+      bob.get(bob.current_url()?)?;
+      bob.synch()?;
+    }
   });
 
   debug!("finishing");