cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorin Beer <lorin.beer....@gmail.com>
Subject Mobile Spec File Tests Query string
Date Tue, 26 Mar 2013 17:18:27 GMT
Hey guys,

In file.tests.js, line 267:
https://github.com/apache/cordova-mobile-spec/blob/master/autotest/tests/file.tests.js#L267

there is a URI passed to resolveLocalFileSystemURI with a query string
appended to the end. The test is meant to return a valid entry.

BB7 and BB10 currently flunk the test, returning with an "Invalid Symbol"
type error.

I checked the iOS handling of this:
https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/CDVFile.m#L218

and the query string is stripped out with the call to NSUrl path.

Questions:

1. what's the point of the test? Just to test handling of valid URI
with syntactically but semantically meaningless query string?
2. is there any purpose to a query string on a URI mean to be resolved to a
file path?

Just want to understand this fully before implementing the handling on BB

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message