~ubuntu-branches/ubuntu/quantal/maas/quantal-updates

« back to all changes in this revision

Viewing changes to src/maasserver/static/jslibs/yui/3.4.1/tests/app/tests/manual/chrome-early-pushstate.html

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-07-03 17:42:37 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120703174237-p8l0keuuznfg721k
Tags: 0.1+bzr709+dfsg-0ubuntu1
* New Upstream release
* debian/control:
  - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
    libjs-raphael
* debian/maas.install:
  - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
  - Update to install various files from chroot, rather tha manually copy
    them from the source.
* debian/maas.links: symlink celeryconfig.py
* debian/maas.maas-celery.upstart: Add job.
* debian/rules:
  - Install celery upstart job.
  - Do not install jslibs as packages are now used.
  - Drop copying of maas_local_settings_sample.py as source now ships
    a maas_local_settings.py
* debian/patches:
  - 04-maas-http-fix.patch: Drop. Merged upstream.
  - 01-fix-database-settings.patch: Refreshed.
  - 99_enums_js.patch: Added until creation of enum.js / build process
    is fixed.
* debian/maas.postinst: Update bzr version to correctly handle upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html>
2
 
<html lang="en">
3
 
<head>
4
 
    <meta charset="utf-8">
5
 
    <title>Chrome early pushState bug</title>
6
 
</head>
7
 
<body>
8
 
 
9
 
<h1>Chrome early pushState bug</h1>
10
 
 
11
 
<script src="../../../../build/yui/yui.js"></script>
12
 
<script>
13
 
window.onpopstate = function (e) {
14
 
    console.log('popstate: ' + window.location.pathname);
15
 
    console.log(e);
16
 
};
17
 
 
18
 
// Create a new YUI instance and populate it with the required modules.
19
 
YUI({filter: 'raw'}).use('controller', function (Y) {
20
 
    var controller = new Y.Controller({
21
 
            root: '/mysite',
22
 
 
23
 
            routes: [
24
 
                {path: '/',    callback: function () { console.log('Hello!'); }},
25
 
                {path: '/pie', callback: function () { console.log('Mmm. Pie.'); }}
26
 
            ]
27
 
        });
28
 
 
29
 
    window.controller = controller;
30
 
    controller.save("/pie");
31
 
    controller.save("/");
32
 
    controller.save("/pie");
33
 
});
34
 
</script>
35
 
 
36
 
</body>
37
 
</html>