File: test-phantomjs-1

package info (click to toggle)
node-platform 1.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 328 kB
  • sloc: javascript: 3,494; sh: 35; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 403 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

# start X
D1=`date +'%S'`
D2=`expr 2000 + $D1`
(Xvfb -screen 0 1024x768x24 :$D2 >/dev/null 2>&1 &)
XVFB_PID=$!
export DISPLAY=:$D2
echo "DISPLAY = "$DISPLAY
sleep 5

# start local session D-BUS
eval `dbus-launch`
trap "kill $DBUS_SESSION_BUS_PID $XVFB_PID" 0 TERM QUIT INT
export DBUS_SESSION_BUS_ADDRESS
export XAUTHORITY=/dev/null
sleep 1

phantomjs debian/tests/test-phantomjs-1.js