summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/filesystem/ogonek-in-filename.html
blob: 9181dce9f0fa72dfa8e17e9d09cb4ad13e1ff93a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<div id="result">RUNNING</div>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}

webkitRequestFileSystem(TEMPORARY, 1, function(fs) {
  function removeFile(name, done) {
    fs.root.getFile(name, {create: false}, function(entry) {
      entry.remove(done);
    }, done);
  }

  function createFile(name, pass, fail) {
    fs.root.getFile(name, {create: true, exclusive: true}, pass, fail);
  }

  removeFile('\u0119', function() {
    removeFile('e\u0328', function() {
      createFile('\u0119', function() {
        createFile('e\u0328', pass, fail);
      }, fail);
    });
  });
}, fail);

function pass() {
  document.getElementById("result").innerText = 'PASS';
  if (window.testRunner)
    testRunner.notifyDone();
}

function fail() {
  document.getElementById("result").innerText = 'FAIL';
  if (window.testRunner)
    testRunner.notifyDone();
}
</script>