text: // Copyright 2014 Simon Lydell
  // X11 (“MIT”) Licensed. (See LICENSE.)
  
  var path         = require("path")
  var test         = require("tape")
  var asyncify     = require("simple-asyncify")
  var common       = require("./common")
  var u            = common.u
  var read         = common.read
  var identity     = common.identity
  
  var sourceMapResolve = require("../")
  
  path.sep = "\\"
  
  
  function testResolveSourceMap(method, sync) {
    return function(t) {
      var wrap = (sync ? identity : asyncify)
  
      var codeUrl = "c:\\a\\b\\c\\foo.js"
  
      t.plan(3 * 2)
  
      if (sync) {
        method = asyncify(method)
      }
  
      var map = {}
      var readMap = wrap(read(JSON.stringify(map)))
  
      method(u("foo.js.map")