#lang racket (require "browser-evaluate.rkt" "../js-assembler/package.rkt" "../make/make-structs.rkt" racket/port racket/runtime-path) (printf "test-conform-browser.rkt\n") (define-runtime-path conform-path (build-path "conform")) (define evaluate (make-evaluate (lambda (program op) (fprintf op "(function () {") (displayln (get-runtime) op) (newline op) (fprintf op "var innerInvoke = ") (package-anonymous (make-SexpSource program) #:should-follow-children? (lambda (src) #t) #:output-port op) (fprintf op "();\n") (fprintf op #<string (open-input-file (build-path conform-path "expected0.txt"))))